]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // (c) Copyright Juergen Hunold 2012 |
2 | // Use, modification and distribution is subject to the Boost Software | |
1e59de90 TL |
3 | // License, Version 1.0. (See accompanying file LICENSE.txt or copy at |
4 | // https://www.bfgroup.xyz/b2/LICENSE.txt) | |
7c673cae FG |
5 | |
6 | #include <QtCore/QObject> | |
7 | ||
8 | class Mock : public QObject | |
9 | { | |
10 | /*! | |
11 | Test that the moc gets the necessary #defines | |
12 | Else the moc will not see the Q_OBJECT macro, issue a warning | |
13 | and linking will fail due to missing vtable symbols. | |
14 | */ | |
15 | #if defined(TEST_MOCK) | |
16 | Q_OBJECT | |
17 | #endif | |
18 | public: | |
19 | ||
20 | Mock(); | |
21 | }; |