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 &)));
return pos.toPoint();
}
-void WaylandSurfaceItem::surfaceMapped(const QSize &)
+void WaylandSurfaceItem::surfaceMapped()
{
setPaintEnabled(true);
}
void setPaintEnabled(bool paintEnabled);
private slots:
- void surfaceMapped(const QSize &size);
+ void surfaceMapped();
void surfaceUnmapped();
void surfaceDestroyed(QObject *object);
void surfaceDamaged(const QRect &);