summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-24 15:19:48 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-24 15:19:48 -0300
commitefb7f109e89c3d8c093c238fb7671c7ab2475f25 (patch)
tree362f229bc5f704aac166eec61087d507c5c98fe4 /qt-ui/mainwindow.cpp
parent5e0a3cdad8d02eff7ffa7c2abb4ac48c332f144f (diff)
downloadsubsurface-efb7f109e89c3d8c093c238fb7671c7ab2475f25.tar.gz
Added support for a preliminary Preferences Dialog
Dirk asked me to try to make it more modern, so I used as a base, the Firefox preferences. currently it saves / loads the preferences, and also smits a signal 'preferencesChanged' that should be connected to anything that uses preferenes, via the PreferencesDialog::intance() object. In the future, I plan to make it have a signal / slot for each member that changes. I also moved the icons to a new folder this time, because the amount of icons is now more than just two, and it was becoming messy. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 53138f5a1..b343140b0 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -26,6 +26,7 @@
#include "modeldelegates.h"
#include "models.h"
#include "downloadfromdivecomputer.h"
+#include "preferences.h"
static MainWindow* instance = 0;
@@ -148,7 +149,7 @@ void MainWindow::on_actionPrint_triggered()
void MainWindow::on_actionPreferences_triggered()
{
- qDebug("actionPreferences");
+ PreferencesDialog::instance()->show();
}
void MainWindow::on_actionQuit_triggered()