diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-06-17 14:01:55 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-06-17 14:01:55 +0200 |
commit | b5bccedc120c52ed48b8a01c278a9b736e7d7ed0 (patch) | |
tree | 8ee9cf2864ad946bbcd1a4e42f275c61bb42bf1e /examples/qml-compositor | |
parent | 31ae61ddf1360b07f6f0eea12d9dbd0425d6ce07 (diff) |
Make qml-compositor compile.
Diffstat (limited to 'examples/qml-compositor')
-rw-r--r-- | examples/qml-compositor/main.cpp | 4 | ||||
-rw-r--r-- | examples/qml-compositor/qml-compositor.pro | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/examples/qml-compositor/main.cpp b/examples/qml-compositor/main.cpp index d92daeaa3..9044bd3a1 100644 --- a/examples/qml-compositor/main.cpp +++ b/examples/qml-compositor/main.cpp @@ -62,8 +62,8 @@ public: setSource(QUrl(QLatin1String("qrc:qml/QmlCompositor/main.qml"))); setResizeMode(QSGView::SizeRootObjectToView); winId(); - if (platformWindow()) { - platformWindow()->glContext(); + if (windowHandle()) { + windowHandle()->glSurface(); } } diff --git a/examples/qml-compositor/qml-compositor.pro b/examples/qml-compositor/qml-compositor.pro index 05dff71b9..43901335f 100644 --- a/examples/qml-compositor/qml-compositor.pro +++ b/examples/qml-compositor/qml-compositor.pro @@ -17,6 +17,9 @@ LIBS += -L ../../lib QT += declarative QT += opengl +# to be removed once scenegraph gets rid of its widget dependencies +QT += widgets widgets-private + !isEmpty(QT.core.MAJOR_VERSION):greaterThan(QT.core.MAJOR_VERSION, 4) { QT += core-private gui-private declarative-private opengl-private } |