From baa32b99f53399cd3ea7c9990a2b6312ee83e8a4 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Sat, 24 Aug 2019 13:10:50 -0400 Subject: finished moving mod info dialog directinterface to settings --- src/modinfodialogtab.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'src/modinfodialogtab.h') 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 - 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 - 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(); - } }; -- cgit v1.3.1