From 77c4b8ef87fcbf0fd6be7cdd7581035bb96f0b58 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 3 Jun 2013 05:58:50 +0900 Subject: Implement Apply / Close without Saving for preferences This hooks up the buttons correctly Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/preferences.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'qt-ui/preferences.h') diff --git a/qt-ui/preferences.h b/qt-ui/preferences.h index 34fc26b07..f50c05c1b 100644 --- a/qt-ui/preferences.h +++ b/qt-ui/preferences.h @@ -6,23 +6,25 @@ #include "../pref.h" namespace Ui{ - class PreferencesDialog; +class PreferencesDialog; } +class QAbstractButton; class PreferencesDialog :public QDialog{ Q_OBJECT public: static PreferencesDialog* instance(); - + void showEvent(QShowEvent* ); signals: void settingsChanged(); - public slots: + void buttonClicked(QAbstractButton* button); void syncSettings(); void resetSettings(); private: explicit PreferencesDialog(QWidget* parent = 0, Qt::WindowFlags f = 0); + void reloadPrefs(); Ui::PreferencesDialog* ui; struct preferences oldPrefs; }; -- cgit v1.2.3-70-g09d2