From 7be0e21543dd6bfac9f6d0725ce1eb3559d0d9d8 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 4 May 2012 15:31:59 +0200 Subject: Implement QWindow::resize(int, int) by calling to resize(QSize). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old implementation called setGeometry() clearing the positioning policy flag. Change-Id: If8226f86481318e772fba37c2c195037c3d955b0 Reviewed-by: Sean Harmer Reviewed-by: Samuel Rødal --- src/gui/kernel/qwindow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3