Imported Upstream version 2.8.11.2
[platform/upstream/cmake.git] / Tests / Qt4Targets / activeqtexe.cpp
1
2 #include <QApplication>
3
4 #ifndef QT_QAXSERVER_LIB
5 #error Expected QT_QAXSERVER_LIB
6 #endif
7
8 #include <QAxFactory>
9
10 class MyObject : public QObject
11 {
12  Q_OBJECT
13 public:
14  MyObject(QObject *parent = 0)
15      : QObject(parent)
16  {
17  }
18 };
19
20 QAXFACTORY_DEFAULT(MyObject,
21                     "{4dc3f340-a6f7-44e4-a79b-3e9217685fbd}",
22                     "{9ee49617-7d5c-441a-b833-4b068d41d751}",
23                     "{13eca64b-ee2a-4f3c-aa04-5d9d975779a7}",
24                     "{ce947ee3-0403-4fdc-895a-4fe779344b46}",
25                     "{8de435ce-8d2a-46ac-b3b3-cb800d0547c7}");
26
27 int main(int argc, char **argv)
28 {
29   QApplication app(argc, argv);
30
31   QAxFactory::isServer();
32
33   return app.exec();
34 }
35
36 #include "activeqtexe.moc"