diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-08-24 09:05:05 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2011-08-24 12:23:46 +0200 |
commit | 4d04c631e2c14e2731cb900906cde223e21cd058 (patch) | |
tree | e8f5157874fb833ef4ebbfa5f0d88150c54d350c /src/gui | |
parent | b6ef26adce2727837488ab6f2d8fcefb5d32ce4d (diff) |
resize convenince function
Change-Id: I81b39912fbc76bb8532ff1d80ff25bce5e84f727
Reviewed-on: http://codereview.qt.nokia.com/3452
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qwindow.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |