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>
This commit is contained in:
Gunnar Sletta 2011-08-24 09:05:05 +02:00 committed by Morten Johan Sørvig
parent b6ef26adce
commit 4d04c631e2

View File

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