aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/extending/chapter2-methods
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/tutorials/extending/chapter2-methods
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/tutorials/extending/chapter2-methods')
-rw-r--r--examples/declarative/tutorials/extending/chapter2-methods/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/tutorials/extending/chapter2-methods/main.cpp b/examples/declarative/tutorials/extending/chapter2-methods/main.cpp
index 4c11768e18..ca6a97e0c7 100644
--- a/examples/declarative/tutorials/extending/chapter2-methods/main.cpp
+++ b/examples/declarative/tutorials/extending/chapter2-methods/main.cpp
@@ -40,11 +40,11 @@
//![0]
#include "piechart.h"
#include <QSGView>
-#include <QApplication>
+#include <QGuiApplication>
int main(int argc, char *argv[])
{
- QApplication app(argc, argv);
+ QGuiApplication app(argc, argv);
qmlRegisterType<PieChart>("Charts", 1, 0, "PieChart");