added settingsdialog cancel

This commit is contained in:
fourtf
2017-01-24 19:51:57 +01:00
parent ad4c2901af
commit de8f6d1e82
8 changed files with 112 additions and 37 deletions
+7 -2
View File
@@ -2,6 +2,7 @@
#define SETTINGSDIALOG_H
#include "settings.h"
#include "settingssnapshot.h"
#include "widgets/settingsdialogtab.h"
#include <QButtonGroup>
@@ -26,6 +27,8 @@ public:
void select(SettingsDialogTab *tab);
private:
SettingsSnapshot snapshot;
QVBoxLayout tabs;
QVBoxLayout vbox;
QHBoxLayout hbox;
@@ -41,8 +44,10 @@ private:
SettingsDialogTab *selectedTab = NULL;
/// Widget creation helpers
QCheckBox *createCheckbox(const QString &title,
Setting<bool> &setting);
QCheckBox *createCheckbox(const QString &title, Setting<bool> &setting);
void okButtonClicked();
void cancelButtonClicked();
};
} // namespace widgets