Warning, /frameworks/kconfig/autotests/kconfig_compiler/test7.cpp.ref is written in an unsupported language. File is not indexed.
0001 // This file is generated by kconfig_compiler_kf6 from test7.kcfg. 0002 // All changes you do to this file will be lost. 0003 0004 #include "test7.h" 0005 0006 Test7::Test7( int Number ) 0007 : KConfigSkeleton( QStringLiteral( "test7rc" ) ) 0008 , mParamNumber(Number) 0009 { 0010 setCurrentGroup( QStringLiteral( "Foo" ) ); 0011 0012 KConfigSkeleton::ItemColor *itemColor; 0013 itemColor = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "color #%1" ).arg( mParamNumber ), mColor, QColor( "red" ) ); 0014 addItem( itemColor, QStringLiteral( "Color" ) ); 0015 0016 setCurrentGroup( QStringLiteral( "Bar%1" ).arg( mParamNumber ) ); 0017 0018 KConfigSkeleton::ItemString *itemFooBar; 0019 itemFooBar = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "foo bar" ), mFooBar ); 0020 addItem( itemFooBar, QStringLiteral( "FooBar" ) ); 0021 KConfigSkeleton::ItemInt *itemAge; 0022 itemAge = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "Age" ), mAge, 35 ); 0023 itemAge->setMinValue(8); 0024 itemAge->setMaxValue(88); 0025 addItem( itemAge, QStringLiteral( "Age" ) ); 0026 } 0027 0028 Test7::~Test7() 0029 { 0030 } 0031