diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-09-15 12:41:07 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-24 10:30:41 (GMT) |
commit | 9c87d9cc3e7a046f79ff62eda81203ef424e4a14 (patch) | |
tree | da7af3604feb5e81e122aaabbc8a84345ba90440 /Tests/QtAutogen/main.cpp | |
parent | 84218e1870ab075c9e2be1f2947358702c849fed (diff) | |
download | CMake-9c87d9cc3e7a046f79ff62eda81203ef424e4a14.zip CMake-9c87d9cc3e7a046f79ff62eda81203ef424e4a14.tar.gz CMake-9c87d9cc3e7a046f79ff62eda81203ef424e4a14.tar.bz2 |
Add automatic rcc invocation for Qt.
This replaces the need to invoke qt4_add_resources by allowing
adding the source .qrc file directly to the target sources.
Diffstat (limited to 'Tests/QtAutogen/main.cpp')
-rw-r--r-- | Tests/QtAutogen/main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Tests/QtAutogen/main.cpp b/Tests/QtAutogen/main.cpp index 39597ba..c8a036e 100644 --- a/Tests/QtAutogen/main.cpp +++ b/Tests/QtAutogen/main.cpp @@ -38,7 +38,8 @@ ** ****************************************************************************/ -#include <QApplication> +#include <QCoreApplication> +#include <QTimer> #include "codeeditor.h" #include "calwidget.h" @@ -49,16 +50,11 @@ #include "xyz.h" #include "yaf.h" #include "libC.h" +#include "resourcetester.h" int main(int argv, char **args) { - QApplication app(argv, args); - - CodeEditor editor; - editor.setWindowTitle(QObject::tr("Code Editor Example")); - - Window w; - w.setWindowTitle(QObject::tr("Window Example")); + QCoreApplication app(argv, args); Foo foo; foo.doFoo(); @@ -81,5 +77,9 @@ int main(int argv, char **args) LibC lc; lc.foo(); + ResourceTester rt; + + QTimer::singleShot(0, &rt, SLOT(doTest())); + return app.exec(); } |