diff --git a/src/controls/QskQuickItem.h b/src/controls/QskQuickItem.h index e758b46c..0256430d 100644 --- a/src/controls/QskQuickItem.h +++ b/src/controls/QskQuickItem.h @@ -69,8 +69,15 @@ class QSK_EXPORT QskQuickItem : public QQuickItem QSizeF implicitSize() const; void setGeometry( qreal x, qreal y, qreal width, qreal height ); + void setGeometry( const QPointF&, const QSizeF& ); QRectF geometry() const; + using QQuickItem::setPosition; + using QQuickItem::setSize; + + void setPosition( qreal x, qreal y ); + void setSize( qreal width, qreal height ); + void setPolishOnResize( bool ); bool polishOnResize() const; @@ -177,11 +184,26 @@ inline bool QskQuickItem::hasChildItems() const return !childItems().isEmpty(); } +inline void QskQuickItem::setGeometry( const QPointF& pos, const QSizeF& size ) +{ + setGeometry( pos.x(), pos.y(), size.width(), size.height() ); +} + inline void QskQuickItem::setGeometry( const QRectF& rect ) { setGeometry( rect.x(), rect.y(), rect.width(), rect.height() ); } +inline void QskQuickItem::setPosition( qreal x, qreal y ) +{ + QQuickItem::setPosition( QPointF( x, y ) ); +} + +inline void QskQuickItem::setSize( qreal width, qreal height ) +{ + QQuickItem::setSize( QSizeF( width, height ) ); +} + #if QT_VERSION < QT_VERSION_CHECK( 5, 10, 0 ) inline QSizeF QskQuickItem::size() const