• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // (c) Copyright Juergen Hunold 2011
2 // Use, modification and distribution is subject to the Boost Software
3 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
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 };
22