diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2011-06-27 14:20:28 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2011-06-27 14:20:28 +0200 |
commit | 634a094ebdedd56c7c8404b6ec921fd4516c9bde (patch) | |
tree | e769aa09538ba92fd982705b858feb74eb1891fd /examples | |
parent | 09c15672015c63206504315d2646eaf14f8f0c4a (diff) |
Fix MDI compositor after surfaceMapped API change.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qwidget-compositor-mdi/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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(); } |