From efb7f109e89c3d8c093c238fb7671c7ab2475f25 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 24 May 2013 15:19:48 -0300 Subject: 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 --- qt-ui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.cpp') 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() -- cgit v1.2.3-70-g09d2