Add a thin layer around SettingsStorage class

This new layer would be handy for saving GUI widget states as they don't
need the value cached and they store/load rarely.
This commit is contained in:
Chocobo1 2020-12-28 23:32:59 +08:00
parent 60d65d8137
commit 0b0597be0c
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
12 changed files with 122 additions and 92 deletions

View file

@ -82,6 +82,6 @@ private:
bool m_headerStateInitialized = false;
// Settings
CachedSettingValue<QSize> m_storeDialogSize;
CachedSettingValue<QByteArray> m_storeTreeHeaderState;
SettingValue<QSize> m_storeDialogSize;
SettingValue<QByteArray> m_storeTreeHeaderState;
};