Implement QWindow::resize(int, int) by calling to resize(QSize).
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Fri, 4 May 2012 13:31:59 +0000 (15:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 4 May 2012 15:57:46 +0000 (17:57 +0200)
The old implementation called setGeometry() clearing the
positioning policy flag.

Change-Id: If8226f86481318e772fba37c2c195037c3d955b0
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/kernel/qwindow.h

index 57c2f6f..629e462 100644 (file)
@@ -192,7 +192,7 @@ public:
     inline void setPos(int posx, int posy) { setPos(QPoint(posx, posy)); }
 
     void resize(const QSize &newSize);
-    inline void resize(int w, int h) { setGeometry(QRect(x(), y(), w, h)); }
+    inline void resize(int w, int h) { resize(QSize(w, h)); }
 
     void setWindowIcon(const QImage &icon) const;