hasChildItems added

This commit is contained in:
Uwe Rathmann 2020-12-27 16:08:18 +01:00
parent 9bf5936732
commit 556cde3f88

View File

@ -55,6 +55,8 @@ class QSK_EXPORT QskQuickItem : public QQuickItem
bool isVisibleTo( const QQuickItem* ) const;
bool isVisibleToParent() const;
bool hasChildItems() const;
QRectF geometry() const;
QRectF rect() const;
#if QT_VERSION < QT_VERSION_CHECK( 5, 10, 0 )
@ -151,6 +153,11 @@ class QSK_EXPORT QskQuickItem : public QQuickItem
Q_DECLARE_PRIVATE( QskQuickItem )
};
inline bool QskQuickItem::hasChildItems() const
{
return !childItems().isEmpty();
}
inline void QskQuickItem::setGeometry( const QRectF& rect )
{
setGeometry( rect.x(), rect.y(), rect.width(), rect.height() );