Changeset View
Changeset View
Standalone View
Standalone View
autotests/kconfig_compiler/test_signal.cpp.ref
1 | // This file is generated by kconfig_compiler_kf5 from test_signal.kcfg. | 1 | // This file is generated by kconfig_compiler_kf5 from test_signal.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 "test_signal.h" | 4 | #include "test_signal.h" | ||
5 | 5 | | |||
6 | #include <qglobal.h> | 6 | #include <qglobal.h> | ||
7 | #include <QFile> | 7 | #include <QFile> | ||
8 | 8 | | |||
9 | class TestSignalHelper | 9 | class TestSignalHelper | ||
10 | { | 10 | { | ||
11 | public: | 11 | public: | ||
12 | TestSignalHelper() : q(nullptr) {} | 12 | TestSignalHelper() : q(nullptr) {} | ||
13 | ~TestSignalHelper() { delete q; } | 13 | ~TestSignalHelper() { delete q; } | ||
14 | TestSignalHelper(const TestSignalHelper&) = delete; | ||||
15 | TestSignalHelper& operator=(const TestSignalHelper&) = delete; | ||||
14 | TestSignal *q; | 16 | TestSignal *q; | ||
15 | }; | 17 | }; | ||
16 | Q_GLOBAL_STATIC(TestSignalHelper, s_globalTestSignal) | 18 | Q_GLOBAL_STATIC(TestSignalHelper, s_globalTestSignal) | ||
17 | TestSignal *TestSignal::self() | 19 | TestSignal *TestSignal::self() | ||
18 | { | 20 | { | ||
19 | if (!s_globalTestSignal()->q) { | 21 | if (!s_globalTestSignal()->q) { | ||
20 | new TestSignal; | 22 | new TestSignal; | ||
21 | s_globalTestSignal()->q->read(); | 23 | s_globalTestSignal()->q->read(); | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |