diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-09-06 12:11:19 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-09-06 12:11:19 +0900 |
commit | bd5ef6e3d9d4105be2f4eea16c774c01c8a84379 (patch) | |
tree | d17bc7d76178bdaa79db4547f054f3163d5471e0 /jobs/mediathumbnailjob.cpp | |
parent | 4e70dd91bb70fa2b9b338686e4d5ab2560947723 (diff) | |
download | libquotient-bd5ef6e3d9d4105be2f4eea16c774c01c8a84379.tar.gz libquotient-bd5ef6e3d9d4105be2f4eea16c774c01c8a84379.zip |
Settings, SettingsGroup, AccountSettings
Settings is a trivial wrapper around QSettings that makes value() and setValue() available from QML (Tensor has the same class atm). SettingsGroup is a cleaner way to reach for sections inside QSettings. It doesn't refer to another QSettings class, rather derives from it and overrides functions that deal with groups. AccountSettings, contrary to the two above, is by no means generic: it serves the specific purpose of storing settings of a single account in a uniform way. Rationale of it is that key literals like "keep_logged_in" cannot be enforced, while function names can; and the same goes for QVariants stored inside - the class enforces specific types while allowing further extension by clients.
Note that functions in QSettings are not virtual, so all these classes are not polymorphic.
Diffstat (limited to 'jobs/mediathumbnailjob.cpp')
0 files changed, 0 insertions, 0 deletions