Warning, /frameworks/kconfig/autotests/kconfig_compiler/test_subgroups.cpp.ref is written in an unsupported language. File is not indexed.
0001 // This file is generated by kconfig_compiler_kf6 from test_subgroups.kcfg.
0002 // All changes you do to this file will be lost.
0003
0004 #include "test_subgroups.h"
0005
0006 TestSubgroups::TestSubgroups( const QString & GeneralGroup, const QString & SubGroup, const QString & AnotherSubGroup )
0007 : KConfigSkeleton( QStringLiteral( "kconfig_compiler_kf6_test_rc" ) )
0008 , mParamGeneralGroup(GeneralGroup)
0009 , mParamSubGroup(SubGroup)
0010 , mParamAnotherSubGroup(AnotherSubGroup)
0011 {
0012 KConfigGroup cgGeneralGroup(this->config(), QStringLiteral( "%1" ).arg( mParamGeneralGroup ));
0013 KConfigGroup cgSubGroup = cgGeneralGroup.group(QStringLiteral( "%1" ).arg( mParamSubGroup ));
0014 KConfigSkeleton::ItemBool *itemFoo;
0015 itemFoo = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Foo" ), mFoo, true );
0016 itemFoo->setWriteFlags(KConfigBase::Notify);
0017 itemFoo->setGroup(cgSubGroup);
0018 addItem( itemFoo, QStringLiteral( "Foo" ) );
0019
0020 KConfigGroup cgother = cgGeneralGroup.group(QStringLiteral( "other" ));
0021 KConfigSkeleton::ItemInt *itemBar;
0022 itemBar = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Bar" ), mBar, 42 );
0023 itemBar->setWriteFlags(KConfigBase::Notify);
0024 itemBar->setGroup(cgother);
0025 addItem( itemBar, QStringLiteral( "Bar" ) );
0026
0027 KConfigGroup cgParentGroup(this->config(), QStringLiteral( "ParentGroup" ));
0028 KConfigGroup cgAnotherSubGroup = cgParentGroup.group(QStringLiteral( "%1" ).arg( mParamAnotherSubGroup ));
0029 KConfigSkeleton::ItemBool *itemBaz;
0030 itemBaz = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Baz" ), mBaz, true );
0031 itemBaz->setWriteFlags(KConfigBase::Notify);
0032 itemBaz->setGroup(cgAnotherSubGroup);
0033 addItem( itemBaz, QStringLiteral( "Baz" ) );
0034
0035 KConfigGroup cgSimpleParentGroup(this->config(), QStringLiteral( "SimpleParentGroup" ));
0036 KConfigGroup cgSimpleGroup = cgSimpleParentGroup.group(QStringLiteral( "SimpleGroup" ));
0037 KConfigSkeleton::ItemBool *itemFoobar;
0038 itemFoobar = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Foobar" ), mFoobar, true );
0039 itemFoobar->setWriteFlags(KConfigBase::Notify);
0040 itemFoobar->setGroup(cgSimpleGroup);
0041 addItem( itemFoobar, QStringLiteral( "Foobar" ) );
0042 }
0043
0044 TestSubgroups::~TestSubgroups()
0045 {
0046 }
0047