mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
5e0a3cdad8
commit
efb7f109e8
15 changed files with 1036 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue