// This file is generated by kconfig_compiler_kf6 from test10.kcfg. // All changes you do to this file will be lost. #include "test10.h" #include #include class Test10Helper { public: Test10Helper() : q(nullptr) {} ~Test10Helper() { delete q; q = nullptr; } Test10Helper(const Test10Helper&) = delete; Test10Helper& operator=(const Test10Helper&) = delete; Test10 *q; }; Q_GLOBAL_STATIC(Test10Helper, s_globalTest10) Test10 *Test10::self() { if (!s_globalTest10()->q) { new Test10; s_globalTest10()->q->read(); } return s_globalTest10()->q; } Test10::Test10( ) : KConfigSkeleton( QStringLiteral( "test10rc" ) ) { Q_ASSERT(!s_globalTest10()->q); s_globalTest10()->q = this; setCurrentGroup( QStringLiteral( "Foo" ) ); KConfigSkeleton::ItemUrl *itemFooBar; itemFooBar = new KConfigSkeleton::ItemUrl( currentGroup(), QStringLiteral( "foo bar" ), mFooBar ); addItem( itemFooBar, QStringLiteral( "FooBar" ) ); KConfigSkeleton::ItemUrlList *itemBarFoo; itemBarFoo = new KConfigSkeleton::ItemUrlList( currentGroup(), QStringLiteral( "bar foo" ), mBarFoo ); addItem( itemBarFoo, QStringLiteral( "BarFoo" ) ); } Test10::~Test10() { if (s_globalTest10.exists() && !s_globalTest10.isDestroyed()) { s_globalTest10()->q = nullptr; } }