diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2019-04-24 16:20:56 +0200 |
---|---|---|
committer | Kai Uwe Broulik <kde@privat.broulik.de> | 2019-04-24 16:21:29 +0200 |
commit | 5d2ed13479a480111355657bf22324118fa576e9 (patch) | |
tree | d55fe47fa3d017391b8c6c1a735d4b098adbe8f8 /autotests/kconfig_compiler/test_notifiers.kcfg | |
parent | b327f5f6cef127980e84926b134d5c7c72e833b1 (diff) | |
download | kconfig-5d2ed13479a480111355657bf22324118fa576e9.tar.gz kconfig-5d2ed13479a480111355657bf22324118fa576e9.tar.bz2 |
Add Notify capability to KConfigXT
Lets you specify Notifiers= in .kcfg for config entries that should be written with Notify flag,
i.e. announce the change to KConfigWatcher
Differential Revision: https://phabricator.kde.org/D20196
Diffstat (limited to 'autotests/kconfig_compiler/test_notifiers.kcfg')
-rw-r--r-- | autotests/kconfig_compiler/test_notifiers.kcfg | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/autotests/kconfig_compiler/test_notifiers.kcfg b/autotests/kconfig_compiler/test_notifiers.kcfg new file mode 100644 index 00000000..2f54f608 --- /dev/null +++ b/autotests/kconfig_compiler/test_notifiers.kcfg @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 + http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > + <kcfgfile name="test7rc"> + <parameter name="Number" type="Int"/> + </kcfgfile> + + <group name="Foo"> + <entry name="Color" type="Color" key="color #$(Number)"> + <label>Block colors.</label> + <default>red</default> + </entry> + </group> + <group name="Bar$(Number)"> + <entry name="FooBar" key="foo bar" type="String"/> + <entry name="Age" type="Int"> + <default>35</default> + <min>8</min> + <max>88</max> + </entry> + </group> + +</kcfg> |