From 4d04c631e2c14e2731cb900906cde223e21cd058 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Wed, 24 Aug 2011 09:05:05 +0200 Subject: [PATCH] resize convenince function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I81b39912fbc76bb8532ff1d80ff25bce5e84f727 Reviewed-on: http://codereview.qt.nokia.com/3452 Reviewed-by: Qt Sanity Bot Reviewed-by: Morten Johan Sørvig --- src/gui/kernel/qwindow.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/kernel/qwindow.h b/src/gui/kernel/qwindow.h index 5b9ad4a3ed..6c8fda5768 100644 --- a/src/gui/kernel/qwindow.h +++ b/src/gui/kernel/qwindow.h @@ -167,6 +167,7 @@ public: inline QPoint pos() const { return geometry().topLeft(); } inline void resize(const QSize &size) { setGeometry(QRect(pos(), size)); } + inline void resize(int w, int h) { setGeometry(QRect(x(), y(), w, h)); } QMargins frameMargins() const;