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>
This commit is contained in:
Tomaz Canabrava 2015-09-17 17:53:39 -03:00 committed by Dirk Hohndel
parent b7a476169d
commit b7daffbf08
2 changed files with 25 additions and 7 deletions

View file

@ -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;