diff options
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 } |