From c84ef319a2d83affbd4a0f2f7c391cdfb25d09ee Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 6 Feb 2014 11:38:28 -0200 Subject: Create a toolbox on the left side of the new profile For quick acess of preferences the show / hide stuff from the Settings dialog is now in that toolbox and in the future we can put a few more, like 'Show Notifications Panel' and 'Enable Legend' Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/preferences.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'qt-ui/preferences.cpp') diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index 34a165cea..ab9c9fa39 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -223,8 +223,6 @@ void PreferencesDialog::buttonClicked(QAbstractButton* button) break; // ignore warnings. } } - - #undef SB void PreferencesDialog::on_chooseFile_clicked() @@ -232,3 +230,8 @@ void PreferencesDialog::on_chooseFile_clicked() QFileInfo fi(system_default_filename()); ui.defaultfilename->setText(QFileDialog::getOpenFileName(this, tr("Open Default Log File"), fi.absolutePath(), tr("Subsurface XML files (*.ssrf *.xml *.XML)"))); } + +void PreferencesDialog::emitSettingsChanged() +{ + emit settingsChanged(); +} -- cgit v1.2.3-70-g09d2