mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
b7a476169d
commit
b7daffbf08
2 changed files with 25 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue