summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutomoc/defines_test/defines_test.cpp
blob: 2836d357b6485b60fd449c351f52c75ab696aa5a (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

#include <QObject>

#ifdef QT_GUI_LIB
#include <QTextDocument>

class SomeDocument : public QTextDocument
{
  Q_OBJECT

Q_SIGNALS:
  void someSig();
};
#endif

#ifdef QT_CORE_LIB
class SomeObject : public QObject
{
  Q_OBJECT

Q_SIGNALS:
  void someSig();
};
#endif

int main(int argc, char **argv)
{
#ifdef QT_CORE_LIB
  QMetaObject sosmo = SomeObject::staticMetaObject;
#endif
#ifdef QT_GUI_LIB
  QMetaObject sdsmo = SomeDocument::staticMetaObject;
#endif

  return 0;
}

#include "defines_test.moc"