diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2012-03-05 08:09:17 +0100 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2012-03-05 08:10:46 +0100 |
commit | edd424d1ed41434f979abe42428ed74c664d59a2 (patch) | |
tree | a51046eea26199f4871c672fa955b47ccef8818b /examples | |
parent | 3c0054d2e9044c576bd74f31a944c3824231c7d3 (diff) | |
download | qtwayland-edd424d1ed41434f979abe42428ed74c664d59a2.tar.gz |
Fixed warnings in qwidget-compositor.
Change-Id: I22f12e2d78f2951e1c1c5a3b2c05794f0c26abb6
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qwidget-compositor/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/qwidget-compositor/main.cpp b/examples/qwidget-compositor/main.cpp index 970074cf..adac4cfa 100644 --- a/examples/qwidget-compositor/main.cpp +++ b/examples/qwidget-compositor/main.cpp @@ -70,13 +70,13 @@ class QWidgetCompositor : public QWidget, public WaylandCompositor public: QWidgetCompositor() : WaylandCompositor(windowHandle()) - , m_moveSurface(0) - , m_dragSourceSurface(0) #ifdef QT_COMPOSITOR_WAYLAND_GL , m_surfaceCompositorFbo(0) , m_textureBlitter(0) , m_textureCache(0) #endif + , m_moveSurface(0) + , m_dragSourceSurface(0) { enableSubSurfaceExtension(); setMouseTracking(true); @@ -307,7 +307,7 @@ protected: return; } QPointF local; - if (WaylandSurface *surface = surfaceAt(e->pos(), &local)) + if (surfaceAt(e->pos(), &local)) defaultInputDevice()->sendMouseMoveEvent(local.toPoint(),pos()); } @@ -326,7 +326,7 @@ protected: return; } QPointF local; - if (WaylandSurface *surface = surfaceAt(e->pos(), &local)) + if (surfaceAt(e->pos(), &local)) defaultInputDevice()->sendMouseReleaseEvent(e->button(), local.toPoint(), e->pos()); } |