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:
parent
b6ef26adce
commit
4d04c631e2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user