summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/DefinesTest/defines_test.cpp
blob: cf4e9cb5b61984a4ed123f928ab2c95bc4f88343 (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"