blob: 971697d52db7a2e0e7c5bb8fae2d548c0688c91f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// This file is generated by kconfig_compiler_kf5 from test10.kcfg.
// All changes you do to this file will be lost.
#include "test10.h"
#include <qglobal.h>
#include <QtCore/QFile>
class Test10Helper
{
public:
Test10Helper() : q(nullptr) {}
~Test10Helper() { delete q; }
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()
{
s_globalTest10()->q = nullptr;
}
|