diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-24 13:10:50 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-24 13:10:50 -0400 |
| commit | baa32b99f53399cd3ea7c9990a2b6312ee83e8a4 (patch) | |
| tree | dc010dc8b0dfb58ec31b632800f62d866bf6fa8d /src/modinfodialogtab.h | |
| parent | 0f712305c840bc509fa8f00eebf2a2a4bbf28bfd (diff) | |
finished moving mod info dialog directinterface to settings
Diffstat (limited to 'src/modinfodialogtab.h')
| -rw-r--r-- | src/modinfodialogtab.h | 34 |
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(); - } }; |
