From 634a094ebdedd56c7c8404b6ec921fd4516c9bde Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Mon, 27 Jun 2011 14:20:28 +0200 Subject: Fix MDI compositor after surfaceMapped API change. --- examples/qwidget-compositor-mdi/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/qwidget-compositor-mdi/main.cpp b/examples/qwidget-compositor-mdi/main.cpp index df02d0c..7f32c09 100644 --- a/examples/qwidget-compositor-mdi/main.cpp +++ b/examples/qwidget-compositor-mdi/main.cpp @@ -121,7 +121,7 @@ public: setWidget(widget); connect(m_surface, SIGNAL(destroyed(QObject *)), this, SLOT(surfaceDestroyed(QObject *))); - connect(m_surface, SIGNAL(mapped(const QRect &)), this, SLOT(surfaceMapped(const QRect &))); + connect(m_surface, SIGNAL(mapped(const QSize &)), this, SLOT(surfaceMapped(const QSize &))); connect(m_surface, SIGNAL(damaged(const QRect &)), this, SLOT(surfaceDamaged(const QRect &))); } @@ -131,10 +131,9 @@ private slots: deleteLater(); } - void surfaceMapped(const QRect &rect) { + void surfaceMapped(const QSize &size) { m_surface->setInputFocus(); - setGeometry(rect); - widget()->setMinimumSize(rect.size()); + widget()->setMinimumSize(size); resize(sizeHint()); show(); } -- cgit v1.2.3