summaryrefslogtreecommitdiff
path: root/src/modinfodialogtab.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-09-09 01:25:01 -0400
committerGitHub <noreply@github.com>2019-09-09 01:25:01 -0400
commit99fdbb2539227cec4fab534efc7420cfc5ca1a92 (patch)
tree4fe70561a85d86b65cc4c6725541767684af09a7 /src/modinfodialogtab.h
parent73626b297904d50507bb7d5d1342120040e655e8 (diff)
parentd863e62c6e2f3c0daa50e16a0206f59558a7bb7e (diff)
Merge pull request #830 from isanae/settings-interface
Settings interface
Diffstat (limited to 'src/modinfodialogtab.h')
-rw-r--r--src/modinfodialogtab.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/modinfodialogtab.h b/src/modinfodialogtab.h
index c43fa076..d0a58574 100644
--- a/src/modinfodialogtab.h
+++ b/src/modinfodialogtab.h
@@ -253,32 +253,6 @@ protected:
//
void setFocus();
-
- // saves the sate of the given widget in geometry/modinfodialog_[objectname]
- //
- // this needs to be a template because saveState() and restoreState() are
- // not in QWidget, but they're in various widgets
- //
- template <class Widget>
- void saveWidgetState(QSettings& s, Widget* w)
- {
- s.setValue(settingName(w), w->saveState());
- }
-
- // restores the sate of the given widget from
- // geometry/modinfodialog_[objectname]
- //
- // this needs to be a template because saveState() and restoreState() are
- // not in QWidget, but they're in various widgets
- //
- template <class Widget>
- void restoreWidgetState(const QSettings& s, Widget* w)
- {
- if (s.contains(settingName(w))) {
- w->restoreState(s.value(settingName(w)).toByteArray());
- }
- }
-
private:
// core
OrganizerCore& m_core;
@@ -303,14 +277,6 @@ private:
// true if the tab has never been selected for the current mod
bool m_firstActivation;
-
-
- // used by saveWidgetState() and restoreWidgetState()
- //
- QString settingName(QWidget* w)
- {
- return "geometry/modinfodialog_" + w->objectName();
- }
};