Implement QWindow::resize(int, int) by calling to resize(QSize).

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>
This commit is contained in:
Friedemann Kleint 2012-05-04 15:31:59 +02:00 committed by Qt by Nokia
parent 0e40289a7e
commit 7be0e21543

View 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;