diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-02 09:38:21 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-02 09:38:21 -0400 |
| commit | 57bef2ab8da5354cc65c3ad0e2cd86d75e1e8b94 (patch) | |
| tree | 7fd7369aa2e7bcd6d4f321e7b176d6abd4901f99 | |
| parent | ca2a7da3f6534515160d5fbf92f72d6ff2bce3e8 (diff) | |
removed directinterface
| -rw-r--r-- | src/settings.h | 7 | ||||
| -rw-r--r-- | src/settingsdialog.cpp | 7 | ||||
| -rw-r--r-- | src/settingsdialog.h | 2 |
3 files changed, 1 insertions, 15 deletions
diff --git a/src/settings.h b/src/settings.h index 09141274..ae29d788 100644 --- a/src/settings.h +++ b/src/settings.h @@ -450,13 +450,6 @@ public: uint getMotDHash() const; /** - * @brief allows direct access to the wrapped QSettings object - * @return the wrapped QSettings object - */ - QSettings &directInterface() { return m_Settings; } - const QSettings &directInterface() const { return m_Settings; } - - /** * @return short code of the configured language (corresponding to the translation files) */ QString language(); diff --git a/src/settingsdialog.cpp b/src/settingsdialog.cpp index a24416e9..35d14644 100644 --- a/src/settingsdialog.cpp +++ b/src/settingsdialog.cpp @@ -131,7 +131,7 @@ bool SettingsDialog::getApiKeyChanged() SettingsTab::SettingsTab(Settings& s, SettingsDialog& d) - : ui(d.ui), m_settings(s), m_qsettings(s.directInterface()), m_dialog(d) + : ui(d.ui), m_settings(s), m_dialog(d) { } @@ -142,11 +142,6 @@ Settings& SettingsTab::settings() return m_settings; } -QSettings& SettingsTab::qsettings() -{ - return m_qsettings; -} - SettingsDialog& SettingsTab::dialog() { return m_dialog; diff --git a/src/settingsdialog.h b/src/settingsdialog.h index 0aad8863..6a99cb8d 100644 --- a/src/settingsdialog.h +++ b/src/settingsdialog.h @@ -41,12 +41,10 @@ protected: Ui::SettingsDialog* ui; Settings& settings(); - QSettings& qsettings(); SettingsDialog& dialog(); private: Settings& m_settings; - QSettings& m_qsettings; SettingsDialog& m_dialog; }; |
