working on something

This commit is contained in:
Rasmus Karlsson
2017-07-02 12:36:50 +02:00
parent f2ef14422b
commit 3c2ee99731
9 changed files with 116 additions and 99 deletions
+11 -9
View File
@@ -30,21 +30,23 @@ public:
static void showDialog();
private:
SettingsSnapshot _snapshot;
SettingsSnapshot snapshot;
QVBoxLayout _tabs;
QVBoxLayout _vbox;
QHBoxLayout _hbox;
QStackedLayout _pageStack;
QDialogButtonBox _buttonBox;
QPushButton _okButton;
QPushButton _cancelButton;
struct {
QVBoxLayout tabs;
QVBoxLayout vbox;
QHBoxLayout hbox;
QStackedLayout pageStack;
QDialogButtonBox buttonBox;
QPushButton okButton;
QPushButton cancelButton;
} ui;
void addTab(QLayout *layout, QString title, QString imageRes);
void addTabs();
SettingsDialogTab *_selectedTab = nullptr;
SettingsDialogTab *selectedTab = nullptr;
/// Widget creation helpers
QCheckBox *createCheckbox(const QString &title, Setting<bool> &setting);