From 00213a3a0906f0e1b5fa97a9e8de235a1e3cdcbf Mon Sep 17 00:00:00 2001 From: Cyril Rossi Date: Mon, 3 Feb 2020 13:50:17 +0100 Subject: kconfig_compiler : generate kconfig settings with subgroup Summary: Following D27059, add `parentGroupName` attribute to `group` element to generate kconfig settings with subgroups Reviewers: ervin, dfaure, #frameworks, meven Reviewed By: ervin, meven Subscribers: apol, meven, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D27133 --- autotests/kconfig_compiler/test_subgroups.h.ref | 102 ++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 autotests/kconfig_compiler/test_subgroups.h.ref (limited to 'autotests/kconfig_compiler/test_subgroups.h.ref') diff --git a/autotests/kconfig_compiler/test_subgroups.h.ref b/autotests/kconfig_compiler/test_subgroups.h.ref new file mode 100644 index 00000000..11665710 --- /dev/null +++ b/autotests/kconfig_compiler/test_subgroups.h.ref @@ -0,0 +1,102 @@ +// This file is generated by kconfig_compiler_kf5 from test_subgroups.kcfg. +// All changes you do to this file will be lost. +#ifndef TESTSUBGROUPS_H +#define TESTSUBGROUPS_H + +#include +#include +#include + +class TestSubgroups : public KConfigSkeleton +{ + public: + + TestSubgroups( const QString & GeneralGroup, const QString & SubGroup, const QString & AnotherSubGroup ); + ~TestSubgroups(); + + /** + Get Foo + */ + bool foo() const + { + return mFoo; + } + + /** + Is Foo Immutable + */ + bool isFooImmutable() const + { + return isImmutable( QStringLiteral( "Foo" ) ); + } + + /** + Get Bar + */ + int bar() const + { + return mBar; + } + + /** + Is Bar Immutable + */ + bool isBarImmutable() const + { + return isImmutable( QStringLiteral( "Bar" ) ); + } + + /** + Get Baz + */ + bool baz() const + { + return mBaz; + } + + /** + Is Baz Immutable + */ + bool isBazImmutable() const + { + return isImmutable( QStringLiteral( "Baz" ) ); + } + + /** + Get Foobar + */ + bool foobar() const + { + return mFoobar; + } + + /** + Is Foobar Immutable + */ + bool isFoobarImmutable() const + { + return isImmutable( QStringLiteral( "Foobar" ) ); + } + + protected: + QString mParamGeneralGroup; + QString mParamSubGroup; + QString mParamAnotherSubGroup; + + // $(SubGroup) + bool mFoo; + + // other + int mBar; + + // $(AnotherSubGroup) + bool mBaz; + + // SimpleGroup + bool mFoobar; + + private: +}; + +#endif + -- cgit v1.2.1