Fix MDI compositor after surfaceMapped API change.
authorPaul Olav Tvete <paul.tvete@nokia.com>
Mon, 27 Jun 2011 12:20:28 +0000 (14:20 +0200)
committerPaul Olav Tvete <paul.tvete@nokia.com>
Mon, 27 Jun 2011 12:20:28 +0000 (14:20 +0200)
examples/qwidget-compositor-mdi/main.cpp

index df02d0c..7f32c09 100644 (file)
@@ -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();
     }