Changeset View
Changeset View
Standalone View
Standalone View
autotests/kconfig_compiler/test5.cpp.ref
Show All 22 Lines | 21 | if (!s_globalTest5()->q) { | |||
---|---|---|---|---|---|
23 | s_globalTest5()->q->read(); | 23 | s_globalTest5()->q->read(); | ||
24 | } | 24 | } | ||
25 | 25 | | |||
26 | return s_globalTest5()->q; | 26 | return s_globalTest5()->q; | ||
27 | } | 27 | } | ||
28 | 28 | | |||
29 | const char* const Test5::EnumButtonToString[] = { "right", "mid", "left" }; | 29 | const char* const Test5::EnumButtonToString[] = { "right", "mid", "left" }; | ||
30 | 30 | | |||
31 | Test5::Test5( ) | 31 | Test5::Test5( QObject *parent ) | ||
32 | : KConfigSkeleton( QStringLiteral( "test4rc" ) ) | 32 | : KConfigSkeleton( QStringLiteral( "test4rc" ) ) | ||
33 | { | 33 | { | ||
34 | setParent(parent); | ||||
34 | Q_ASSERT(!s_globalTest5()->q); | 35 | Q_ASSERT(!s_globalTest5()->q); | ||
35 | s_globalTest5()->q = this; | 36 | s_globalTest5()->q = this; | ||
36 | setCurrentGroup( QStringLiteral( "Foo" ) ); | 37 | setCurrentGroup( QStringLiteral( "Foo" ) ); | ||
37 | 38 | | |||
38 | QColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black }; | 39 | QColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black }; | ||
39 | KConfigSkeleton::ItemColor *itemColor[4]; | 40 | KConfigSkeleton::ItemColor *itemColor[4]; | ||
40 | itemColor[0] = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "color #0" ), mColor[0], defaultColor[0] ); | 41 | itemColor[0] = new KConfigSkeleton::ItemColor( currentGroup(), QStringLiteral( "color #0" ), mColor[0], defaultColor[0] ); | ||
41 | addItem( itemColor[0], QStringLiteral( "Color0" ) ); | 42 | addItem( itemColor[0], QStringLiteral( "Color0" ) ); | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |