diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-19 09:45:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-19 09:53:42 +0200 |
commit | 06416c1581409b1fd0737fa8ce7370f58cbdc417 (patch) | |
tree | 8002cee846c1c6fdcd1f1d87090ac10340f14a24 /qfunctionconfigurator | |
parent | 05b5171229d840b8b120a1e5b765128973270584 (diff) |
cleanup mapping codeopentrack-2.2-end-of-alpha
There was quite a bit of duplicated logic, which wasn't duplicated where
it needed to be.
Make functions out of the duplicated bits, then call where appropriate.
Issue: #56
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.cpp | 7 | ||||
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.h | 2 |
2 files changed, 0 insertions, 9 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index 3f94f094..70f68285 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -49,13 +49,6 @@ void QFunctionConfigurator::setConfig(FunctionConfig* config, const QString& nam update(); } -void QFunctionConfigurator::saveSettings(QString settingsFile, const QString& name) { - QSettings iniFile(settingsFile, QSettings::IniFormat); - - if (_config) - _config->saveSettings(iniFile, name); -} - void QFunctionConfigurator::drawBackground() { if (!_config) diff --git a/qfunctionconfigurator/qfunctionconfigurator.h b/qfunctionconfigurator/qfunctionconfigurator.h index 4643f0d5..bb2f09ce 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.h +++ b/qfunctionconfigurator/qfunctionconfigurator.h @@ -23,8 +23,6 @@ public: FunctionConfig* config(); void setConfig(FunctionConfig* config, const QString &name); - void saveSettings(QString settingsFile, const QString &name); - QColor colorBezier() const { return spline_color; |