summaryrefslogtreecommitdiff
path: root/src/modinfodialogtab.h
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2020-01-06 05:17:01 -0700
committerGitHub <noreply@github.com>2020-01-06 05:17:01 -0700
commitdfa600996c49c1b23dca884c963dc917bd9cfc0a (patch)
treec6def4277cc962822d0dcde71fa9148e050f693f /src/modinfodialogtab.h
parente69078e2399a88bda7bb9ffae7a3d57db9a4e9cf (diff)
parentd1a788dfad341b32235abc25c2ba1645f8be1ace (diff)
Merge pull request #954 from ModOrganizer2/Develop
Stage for release 2.2.2
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();
- }
};