Changeset View
Changeset View
Standalone View
Standalone View
autotests/kconfig_compiler/test4.cpp.ref
1 | // This file is generated by kconfig_compiler_kf5 from test4.kcfg. | 1 | // This file is generated by kconfig_compiler_kf5 from test4.kcfg. | ||
---|---|---|---|---|---|
2 | // All changes you do to this file will be lost. | 2 | // All changes you do to this file will be lost. | ||
3 | 3 | | |||
4 | #include "test4.h" | 4 | #include "test4.h" | ||
5 | 5 | | |||
6 | #include <qglobal.h> | 6 | #include <qglobal.h> | ||
7 | #include <QFile> | 7 | #include <QFile> | ||
8 | 8 | | |||
9 | class Test4Helper | 9 | class Test4Helper | ||
10 | { | 10 | { | ||
11 | public: | 11 | public: | ||
12 | Test4Helper() : q(nullptr) {} | 12 | Test4Helper() : q(nullptr) {} | ||
13 | ~Test4Helper() { delete q; } | 13 | ~Test4Helper() { delete q; } | ||
14 | Test4Helper(const Test4Helper&) = delete; | ||||
15 | Test4Helper& operator=(const Test4Helper&) = delete; | ||||
14 | Test4 *q; | 16 | Test4 *q; | ||
15 | }; | 17 | }; | ||
16 | Q_GLOBAL_STATIC(Test4Helper, s_globalTest4) | 18 | Q_GLOBAL_STATIC(Test4Helper, s_globalTest4) | ||
17 | Test4 *Test4::self() | 19 | Test4 *Test4::self() | ||
18 | { | 20 | { | ||
19 | if (!s_globalTest4()->q) { | 21 | if (!s_globalTest4()->q) { | ||
20 | new Test4; | 22 | new Test4; | ||
21 | s_globalTest4()->q->read(); | 23 | s_globalTest4()->q->read(); | ||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |