summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qiosfontdialog.mm
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2024-05-13 17:26:27 +0200
committerAxel Spoerl <axel.spoerl@qt.io>2024-05-20 09:50:09 +0200
commitb0b34c56a99130bfc9c82cb006653ce6b8f0516e (patch)
treecf21c3deaf380a3a8c15df0b6a561056177748ec /src/plugins/platforms/ios/qiosfontdialog.mm
parent802cd973f2e90f4fa947a8ae19158568e7e265b1 (diff)
QKdeThemePrivate: refactor reading of KDE settings
KDE settings locations and keys were hardcoded in QKdeThemePrivate. readKdeSetting() was implemented as a static method, because it was called from the static readKdeSystemPalette(). It expects a QStringList argument with the KDE settings directories, an int representing the KDE version, as well as a QHash with settings passed as a reference. Class members exist for settings directories and version. They have to be passed for each call. The hash containing settings objects will be created on the stack of each function making calles to readKdeSetting(). The settings key, including subsections, was passed as a QString. Implement enumerations for all KDE setting types and settings. Derive subsection from the settings type. Change the signature of readKdeSetting() from a string to the new enumeration. Implement a non static override of readKdeSetting, to avoid passing data memebers on each call. Implement a mutable has for KDE settings, to enable caching across functions in the future. This patch does not change any behavior. Task-number: QTBUG-125285 Pick-to: 6.7 Change-Id: Ic0320853e08e82dd83bdba1e7765a1e5c6ffb384 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Diffstat (limited to 'src/plugins/platforms/ios/qiosfontdialog.mm')
0 files changed, 0 insertions, 0 deletions