Changeset View
Changeset View
Standalone View
Standalone View
autotests/kconfig_compiler/test10.cpp.ref
Show All 20 Lines | 20 | { | |||
---|---|---|---|---|---|
21 | if (!s_globalTest10()->q) { | 21 | if (!s_globalTest10()->q) { | ||
22 | new Test10; | 22 | new Test10; | ||
23 | s_globalTest10()->q->read(); | 23 | s_globalTest10()->q->read(); | ||
24 | } | 24 | } | ||
25 | 25 | | |||
26 | return s_globalTest10()->q; | 26 | return s_globalTest10()->q; | ||
27 | } | 27 | } | ||
28 | 28 | | |||
29 | Test10::Test10( ) | 29 | Test10::Test10( ) | ||
30 | : KConfigSkeleton( QStringLiteral( "test10rc" ) ) | 30 | : KConfigSkeleton( QStringLiteral( "test10rc" ) ) | ||
31 | { | 31 | { | ||
32 | Q_ASSERT(!s_globalTest10()->q); | 32 | Q_ASSERT(!s_globalTest10()->q); | ||
33 | s_globalTest10()->q = this; | 33 | s_globalTest10()->q = this; | ||
34 | setCurrentGroup( QStringLiteral( "Foo" ) ); | 34 | setCurrentGroup( QStringLiteral( "Foo" ) ); | ||
35 | 35 | | |||
36 | KConfigSkeleton::ItemUrl *itemFooBar; | 36 | KConfigSkeleton::ItemUrl *itemFooBar; | ||
37 | itemFooBar = new KConfigSkeleton::ItemUrl( currentGroup(), QStringLiteral( "foo bar" ), mFooBar ); | 37 | itemFooBar = new KConfigSkeleton::ItemUrl( currentGroup(), QStringLiteral( "foo bar" ), mFooBar ); | ||
Show All 11 Lines |