Skip to content

Use GenericConfigLocation to read & write ui.rc files (w/ migration class)

Custom ui.rc files are considered to be configuration files, so are to be stored in the respective filesystem paths. While changing the location, the suffix is bumped to 6 and the component/app name used as root dir instead, for app-centric instead of technology-centric storage of config files:
QStandardPaths::GenericDataLocation/kxmlgui5/componentName
->
QStandardPaths::GenericConfigLocation/componentName/kxmlgui6

Matching ECM MR: extra-cmake-modules!374

Sample adaptions (slightly outdated, as partial still with qt5+qt6 support, which needed a separate qrc file):

See https://phabricator.kde.org/T12409

Edited by Friedrich W. H. Kossebau

Merge request reports