Fixup waylandsurface item after QSize was removed
authorJørgen Lind <jorgen.lind@nokia.com>
Wed, 4 Jan 2012 09:22:49 +0000 (10:22 +0100)
committerJørgen Lind <jorgen.lind@nokia.com>
Wed, 4 Jan 2012 10:35:11 +0000 (11:35 +0100)
from the mapped signal

Change-Id: Ib05fad9393d33a965e50ea3459fa83b10cd6d567
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/compositor/compositor_api/waylandsurfaceitem.cpp
src/compositor/compositor_api/waylandsurfaceitem.h

index 4d3687c..eca3f62 100644 (file)
@@ -104,7 +104,7 @@ void WaylandSurfaceItem::init(WaylandSurface *surface)
     setSmooth(true);
     setFlag(ItemHasContents);
     setAcceptedMouseButtons(Qt::LeftButton | Qt::RightButton);
-    connect(surface, SIGNAL(mapped(const QSize &)), this, SLOT(surfaceMapped(const QSize &)));
+    connect(surface, SIGNAL(mapped()), this, SLOT(surfaceMapped()));
     connect(surface, SIGNAL(unmapped()), this, SLOT(surfaceUnmapped()));
     connect(surface, SIGNAL(destroyed(QObject *)), this, SLOT(surfaceDestroyed(QObject *)));
     connect(surface, SIGNAL(damaged(const QRect &)), this, SLOT(surfaceDamaged(const QRect &)));
@@ -202,7 +202,7 @@ QPoint WaylandSurfaceItem::toSurface(const QPointF &pos) const
     return pos.toPoint();
 }
 
-void WaylandSurfaceItem::surfaceMapped(const QSize &)
+void WaylandSurfaceItem::surfaceMapped()
 {
     setPaintEnabled(true);
 }
index e08cda3..6e8161c 100644 (file)
@@ -99,7 +99,7 @@ public slots:
     void setPaintEnabled(bool paintEnabled);
 
 private slots:
-    void surfaceMapped(const QSize &size);
+    void surfaceMapped();
     void surfaceUnmapped();
     void surfaceDestroyed(QObject *object);
     void surfaceDamaged(const QRect &);