Changeset View
Changeset View
Standalone View
Standalone View
autotests/kconfig_compiler/test_dpointer.cpp.ref
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 59 | { | |||
---|---|---|---|---|---|
60 | if (!s_globalTestDPointer()->q) { | 60 | if (!s_globalTestDPointer()->q) { | ||
61 | new TestDPointer; | 61 | new TestDPointer; | ||
62 | s_globalTestDPointer()->q->read(); | 62 | s_globalTestDPointer()->q->read(); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | return s_globalTestDPointer()->q; | 65 | return s_globalTestDPointer()->q; | ||
66 | } | 66 | } | ||
67 | 67 | | |||
68 | TestDPointer::TestDPointer( ) | 68 | TestDPointer::TestDPointer( ) | ||
69 | : KConfigSkeleton( QStringLiteral( "korganizerrc" ) ) | 69 | : KConfigSkeleton( QStringLiteral( "korganizerrc" ) ) | ||
70 | { | 70 | { | ||
71 | d = new TestDPointerPrivate; | 71 | d = new TestDPointerPrivate; | ||
72 | Q_ASSERT(!s_globalTestDPointer()->q); | 72 | Q_ASSERT(!s_globalTestDPointer()->q); | ||
73 | s_globalTestDPointer()->q = this; | 73 | s_globalTestDPointer()->q = this; | ||
74 | setCurrentGroup( QStringLiteral( "General" ) ); | 74 | setCurrentGroup( QStringLiteral( "General" ) ); | ||
75 | 75 | | |||
76 | d->autoSaveItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Auto Save" ), d->autoSave, false ); | 76 | d->autoSaveItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "Auto Save" ), d->autoSave, false ); | ||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |