summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2016-01-25 15:54:23 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-25 13:04:01 -0800
commit2c5fad73e8939409639548571dcb942e6b2cb792 (patch)
treeacd1f2cd4adaeb6f1c642cf6c1d57baecafbea09 /desktop-widgets/mainwindow.h
parent5afda93b71880395a78c121b76c234e1953edf1b (diff)
downloadsubsurface-2c5fad73e8939409639548571dcb942e6b2cb792.tar.gz
Start to use the QSettings ObjectWrapper
start of the QSettinsg Object Wrapper usage on the code this first patch removes two macros that generated around 200 lines in runtime for something like a quarter of it Basically, whenever we changed anything we called the PreferencesDialog::settingsChanged and connected everythign to that signal, now each setting has it's own changed signal and we can call it directly. The best thing about this approach is that we don't trigger repaints for things that are not directly profile related. ( actually we still do, but the plan is to remove them in due time) this commit breaks correct atualization of the profile (because everything was connected to PreferencesDialog::settingsChanged) and now I need to hunt a bit for the correct connections Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/mainwindow.h')
-rw-r--r--desktop-widgets/mainwindow.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h
index e53c1efc9..7e7f5db1e 100644
--- a/desktop-widgets/mainwindow.h
+++ b/desktop-widgets/mainwindow.h
@@ -147,23 +147,6 @@ slots:
void on_actionImportDiveLog_triggered();
/* TODO: Move those slots below to it's own class */
- void on_profCalcAllTissues_triggered(bool triggered);
- void on_profCalcCeiling_triggered(bool triggered);
- void on_profDcCeiling_triggered(bool triggered);
- void on_profEad_triggered(bool triggered);
- void on_profIncrement3m_triggered(bool triggered);
- void on_profMod_triggered(bool triggered);
- void on_profNdl_tts_triggered(bool triggered);
- void on_profPO2_triggered(bool triggered);
- void on_profPhe_triggered(bool triggered);
- void on_profPn2_triggered(bool triggered);
- void on_profHR_triggered(bool triggered);
- void on_profRuler_triggered(bool triggered);
- void on_profSAC_triggered(bool triggered);
- void on_profScaled_triggered(bool triggered);
- void on_profTogglePicture_triggered(bool triggered);
- void on_profTankbar_triggered(bool triggered);
- void on_profTissues_triggered(bool triggered);
void on_actionExport_triggered();
void on_copy_triggered();
void on_paste_triggered();