summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@nokia.com>2011-08-31 16:25:36 +0200
committerAndy Nichols <andy.nichols@nokia.com>2011-08-31 16:25:36 +0200
commita859bb334b862d62f183d646e055a032b785dbc9 (patch)
treeb1de037307494b6fdc62aaca3ad4975722d11e44 /examples
parentda9bddc605089397917b89037ac7429dbb9f32c7 (diff)
parent5f92df57bd0841e9eb07e8c69327c2405f16373c (diff)
Merge branch 'refactor' of scm.dev.nokia.troll.no:qt-compositor/mainline into refactor
Diffstat (limited to 'examples')
-rw-r--r--examples/qwidget-compositor/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/qwidget-compositor/main.cpp b/examples/qwidget-compositor/main.cpp
index 2217d10ec..8e718602d 100644
--- a/examples/qwidget-compositor/main.cpp
+++ b/examples/qwidget-compositor/main.cpp
@@ -81,7 +81,11 @@ class QWidgetCompositor : public QWidget, public WaylandCompositor
{
Q_OBJECT
public:
- QWidgetCompositor() : WaylandCompositor(windowHandle(),const_cast<QGLContext *>(context())), m_moveSurface(0), m_dragSourceSurface(0) {
+ QWidgetCompositor()
+ : WaylandCompositor(windowHandle(),const_cast<QGLContext *>(context())->contextHandle())
+ , m_moveSurface(0)
+ , m_dragSourceSurface(0)
+ {
setMouseTracking(true);
setRetainedSelectionEnabled(true);
m_background = QImage(QLatin1String("background.jpg"));