settings: add option to stay minimized instead of close
Refs #75805
Change-Id: Idfad314822da68382c18b1b6a2adeb538ef64a25
diff --git a/configurationwidget.h b/configurationwidget.h
index 6f0ffa7..debfd1f 100644
--- a/configurationwidget.h
+++ b/configurationwidget.h
@@ -21,6 +21,7 @@
#include <QWidget>
#include <QItemSelection>
+#include <QSettings>
#include "navwidget.h"
#include "accountdetails.h"
@@ -43,7 +44,6 @@
~ConfigurationWidget();
void atExit();
-
protected:
void showEvent(QShowEvent *event);
@@ -57,6 +57,7 @@
void on_startupBox_toggled(bool checked);
void on_clearHistoryButton_clicked();
void on_historyDaySettingsSpinBox_valueChanged(int limit);
+ void on_closeOrMinCheckBox_toggled(bool checked);
private slots:
void accountSelected(QItemSelection itemSel);
@@ -70,6 +71,7 @@
bool isLoading_;
AccountDetails* accountDetails_;
AccountStateDelegate *accountStateDelegate_;
+ QSettings settings_;
};
#endif // CONFIGURATIONWIDGET_H