Changeset View
Changeset View
Standalone View
Standalone View
autotests/kconfig_compiler/test1.cpp.ref
1 | // This file is generated by kconfig_compiler_kf5 from test1.kcfg. | 1 | // This file is generated by kconfig_compiler_kf5 from test1.kcfg. | ||
---|---|---|---|---|---|
2 | // All changes you do to this file will be lost. | 2 | // All changes you do to this file will be lost. | ||
3 | 3 | | |||
4 | #include "test1.h" | 4 | #include "test1.h" | ||
5 | 5 | | |||
6 | Test1::Test1( const QString & transport, const QString & folder ) | 6 | Test1::Test1( const QString & transport, const QString & folder, QObject *parent ) | ||
7 | : KConfigSkeleton( QStringLiteral( "examplerc" ) ) | 7 | : KConfigSkeleton( QStringLiteral( "examplerc" ) ) | ||
8 | , mParamtransport(transport) | 8 | , mParamtransport(transport) | ||
9 | , mParamfolder(folder) | 9 | , mParamfolder(folder) | ||
10 | { | 10 | { | ||
11 | setParent(parent); | ||||
11 | setCurrentGroup( QStringLiteral( "General-%1" ).arg( mParamfolder ) ); | 12 | setCurrentGroup( QStringLiteral( "General-%1" ).arg( mParamfolder ) ); | ||
12 | 13 | | |||
13 | KConfigSkeleton::ItemBool *itemOneOption; | 14 | KConfigSkeleton::ItemBool *itemOneOption; | ||
14 | itemOneOption = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "OneOption" ), mOneOption, true ); | 15 | itemOneOption = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "OneOption" ), mOneOption, true ); | ||
15 | addItem( itemOneOption, QStringLiteral( "OneOption" ) ); | 16 | addItem( itemOneOption, QStringLiteral( "OneOption" ) ); | ||
16 | KConfigSkeleton::ItemInt *itemAnotherOption; | 17 | KConfigSkeleton::ItemInt *itemAnotherOption; | ||
17 | itemAnotherOption = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Another Option" ), mAnotherOption, 5 ); | 18 | itemAnotherOption = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Another Option" ), mAnotherOption, 5 ); | ||
18 | addItem( itemAnotherOption, QStringLiteral( "AnotherOption" ) ); | 19 | addItem( itemAnotherOption, QStringLiteral( "AnotherOption" ) ); | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |