summaryrefslogtreecommitdiffstats
path: root/examples/qml-compositor
diff options
context:
space:
mode:
authorJan Arne Petersen <jan.petersen@kdab.com>2013-08-27 00:13:32 +0200
committerJan Arne Petersen <jan.petersen@kdab.com>2013-09-09 14:15:51 +0200
commit9bbfb94ccd7d7d9c8fc0de377d914149283e4d7b (patch)
tree6e3c2a79c360ff5a080de398f024942932dc9df8 /examples/qml-compositor
parent330c429991ef1c32ffdd51cdc8627ef1b71604b3 (diff)
Allow to customize enabled compositor extensions
Add an ExtensionFlag enum to QWaylandCompositor and allow to specify extensions to enable via the constructor. Change-Id: If1a691232134034ba4055a9ed280bc211dcaebe8 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'examples/qml-compositor')
-rw-r--r--examples/qml-compositor/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/qml-compositor/main.cpp b/examples/qml-compositor/main.cpp
index d481a2522..e4473995f 100644
--- a/examples/qml-compositor/main.cpp
+++ b/examples/qml-compositor/main.cpp
@@ -59,10 +59,9 @@ class QmlCompositor : public QQuickView, public QWaylandCompositor
public:
QmlCompositor()
- : QWaylandCompositor(this)
+ : QWaylandCompositor(this, 0, static_cast<ExtensionFlag>(DefaultExtensions | SubSurfaceExtension))
, m_fullscreenSurface(0)
{
- enableSubSurfaceExtension();
setSource(QUrl("main.qml"));
setResizeMode(QQuickView::SizeRootObjectToView);
setColor(Qt::black);