aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/cppextensions
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-09-21 10:18:15 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-21 06:11:06 +0200
commit4114b9dcff68cdebc36e3b4818d4463d62421ecf (patch)
tree4c329843d9713390d6b28212adb9587ed63d5049 /examples/declarative/cppextensions
parent91a16c3a6db8ac4cfe6779a0b2d95097377dd04f (diff)
Fixed compile of examples and tests.
6aad4122332c0291e2e3249b508c7583428177b9 in qtbase removed implicit linking to libQtWidgets. Projects which implicitly used that module were broken. Either remove the dependency where it is not required, or explicitly opt-in to libQtWidgets where it is required. Change-Id: I6f4fb1d98bdf5bb65b4f02a1d245d334314b163d Reviewed-on: http://codereview.qt-project.org/5268 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'examples/declarative/cppextensions')
-rw-r--r--examples/declarative/cppextensions/networkaccessmanagerfactory/main.cpp4
-rw-r--r--examples/declarative/cppextensions/plugins/plugin.cpp4
-rw-r--r--examples/declarative/cppextensions/referenceexamples/extended/extended.pro2
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/declarative/cppextensions/networkaccessmanagerfactory/main.cpp b/examples/declarative/cppextensions/networkaccessmanagerfactory/main.cpp
index 2da6e3c8fe..7caeaf9471 100644
--- a/examples/declarative/cppextensions/networkaccessmanagerfactory/main.cpp
+++ b/examples/declarative/cppextensions/networkaccessmanagerfactory/main.cpp
@@ -38,7 +38,7 @@
**
****************************************************************************/
-#include <QApplication>
+#include <QGuiApplication>
#include <QNetworkAccessManager>
#include <QNetworkProxy>
@@ -80,7 +80,7 @@ int main(int argc, char ** argv)
{
QUrl source("qrc:view.qml");
- QApplication app(argc, argv);
+ QGuiApplication app(argc, argv);
for (int i = 1; i < argc; ++i) {
QString arg(argv[i]);
diff --git a/examples/declarative/cppextensions/plugins/plugin.cpp b/examples/declarative/cppextensions/plugins/plugin.cpp
index 056e09383b..299b0ff3e7 100644
--- a/examples/declarative/cppextensions/plugins/plugin.cpp
+++ b/examples/declarative/cppextensions/plugins/plugin.cpp
@@ -43,7 +43,7 @@
#include <qdebug.h>
#include <qdatetime.h>
#include <qbasictimer.h>
-#include <qapplication.h>
+#include <qcoreapplication.h>
// Implements a "TimeModel" class with hour and minute properties
// that change on-the-minute yet efficiently sleep the rest
@@ -109,7 +109,7 @@ public:
{
if (++instances == 1) {
if (!timer)
- timer = new MinuteTimer(qApp);
+ timer = new MinuteTimer(QCoreApplication::instance());
connect(timer, SIGNAL(timeChanged()), this, SIGNAL(timeChanged()));
timer->start();
}
diff --git a/examples/declarative/cppextensions/referenceexamples/extended/extended.pro b/examples/declarative/cppextensions/referenceexamples/extended/extended.pro
index d4c9dc9c6e..78585f6906 100644
--- a/examples/declarative/cppextensions/referenceexamples/extended/extended.pro
+++ b/examples/declarative/cppextensions/referenceexamples/extended/extended.pro
@@ -2,7 +2,7 @@ TEMPLATE = app
TARGET = extended
DEPENDPATH += .
INCLUDEPATH += .
-QT += declarative
+QT += declarative widgets
# Input
SOURCES += main.cpp \