summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindow.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-05-04 15:31:59 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-04 17:57:46 +0200
commit7be0e21543dd6bfac9f6d0725ce1eb3559d0d9d8 (patch)
treec7ad4ded2f9791ed28a211907a4612662171bcc4 /src/gui/kernel/qwindow.h
parent0e40289a7e0b2aa3ce196738df64feb4a883a219 (diff)
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>
Diffstat (limited to 'src/gui/kernel/qwindow.h')
-rw-r--r--src/gui/kernel/qwindow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwindow.h b/src/gui/kernel/qwindow.h
index 57c2f6f755..629e462da0 100644
--- a/src/gui/kernel/qwindow.h
+++ b/src/gui/kernel/qwindow.h
@@ -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;