[Qt] add startup option to reset Qt settings

This commit is contained in:
Jonas Schnelli
2015-11-13 16:27:42 +01:00
parent d2e987aa19
commit ae98388b22
3 changed files with 12 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ class OptionsModel : public QAbstractListModel
Q_OBJECT
public:
explicit OptionsModel(QObject *parent = 0);
explicit OptionsModel(QObject *parent = 0, bool resetSettings = false);
enum OptionID {
StartAtStartup, // bool
@@ -48,7 +48,7 @@ public:
OptionIDRowCount,
};
void Init();
void Init(bool resetSettings = false);
void Reset();
int rowCount(const QModelIndex & parent = QModelIndex()) const;