From 4114b9dcff68cdebc36e3b4818d4463d62421ecf Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Wed, 21 Sep 2011 10:18:15 +1000 Subject: 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 Reviewed-by: Toby Tomkins Reviewed-by: Alan Alpert --- examples/declarative/cppextensions/plugins/plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/declarative/cppextensions/plugins/plugin.cpp') 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 #include #include -#include +#include // 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(); } -- cgit v1.2.3