summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences/preferencesdialog.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-09-17 17:53:39 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-30 10:36:49 -0700
commitb7daffbf084c44b099c9d1f84fb3935ce5735b39 (patch)
tree4ece2db53ea4ba00b8e12351efcc434f6fe64fd0 /desktop-widgets/preferences/preferencesdialog.h
parentb7a476169d50dbf4d40b134faac5b88cabd4fa17 (diff)
downloadsubsurface-b7daffbf084c44b099c9d1f84fb3935ce5735b39.tar.gz
Preferences: Hook up the dialog buttons and make it work
Since I'm using a dialog created by hand, I also need to hook things by hand. the code is very simple - debug output kept in just to make sure things are indeed working. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/preferences/preferencesdialog.h')
-rw-r--r--desktop-widgets/preferences/preferencesdialog.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/preferences/preferencesdialog.h b/desktop-widgets/preferences/preferencesdialog.h
index a1db94b43..dcc97bf94 100644
--- a/desktop-widgets/preferences/preferencesdialog.h
+++ b/desktop-widgets/preferences/preferencesdialog.h
@@ -8,6 +8,7 @@ class AbstractPreferencesWidget;
class QListWidget;
class QStackedWidget;
class QDialogButtonBox;
+class QAbstractButton;
class PreferencesDialogV2 : public QDialog {
Q_OBJECT
@@ -20,7 +21,7 @@ private:
void cancelRequested();
void applyRequested();
void defaultsRequested();
-
+ void buttonClicked(QAbstractButton *btn);
QList<AbstractPreferencesWidget*> pages;
QListWidget *pagesList;
QStackedWidget *pagesStack;