Review Request 125598: Allow KConfig to use resources as fallback config files

Christoph Cullmann cullmann at kde.org
Sat Oct 17 12:33:23 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125598/
-----------------------------------------------------------

(Updated Oct. 17, 2015, 12:33 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDE Frameworks and David Faure.


Changes
-------

Submitted with commit c79edee12bfc7ef50ce9587ce2beb419b3e14f45 by Christoph Cullmann to branch master.


Repository: kconfig


Description
-------

Like KXMLGui, KConfig has now a fallback to config files bundled with the application in resources.

Like kxmlgui, its in :/kconfig5.

This allows e.g. KTextEditor deployment without any installed files beside the library itself and should easy the shipping of default configs for non-linux/unix platforms.

Question is if :/kconfig5 is that nice a prefix, at least it is unique and matches what we do with kxmlgui5.


Diffs
-----

  autotests/CMakeLists.txt 8213bc4 
  autotests/fallbackconfigresources.qrc PRE-CREATION 
  autotests/fallbackconfigresourcestest.cpp PRE-CREATION 
  src/core/kconfig.cpp 7f03869 

Diff: https://git.reviewboard.kde.org/r/125598/diff/


Testing
-------

Added an unit test to show that the fallback resource is found and read.


Thanks,

Christoph Cullmann

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151017/6c2fa7e0/attachment.html>


More information about the Kde-frameworks-devel mailing list