more properties
This commit is contained in:
parent
6ee7a0c840
commit
38d0397c5e
@ -422,7 +422,7 @@ bool QskQuickItem::isUpdateNodeScheduled() const
|
||||
|
||||
bool QskQuickItem::isInitiallyPainted() const
|
||||
{
|
||||
return d_func()->isInitiallyPainted;
|
||||
return d_func()->initiallyPainted;
|
||||
}
|
||||
|
||||
bool QskQuickItem::maybeUnresized() const
|
||||
@ -755,7 +755,7 @@ void QskQuickItem::itemChange( QQuickItem::ItemChange change,
|
||||
if ( d->controlFlags & QskQuickItem::CleanupOnVisibility )
|
||||
d->cleanupNodes();
|
||||
|
||||
d->isInitiallyPainted = false;
|
||||
d->initiallyPainted = false;
|
||||
}
|
||||
|
||||
if ( parentItem() && parentItem()->isVisible() )
|
||||
@ -837,7 +837,7 @@ void QskQuickItem::updatePolish()
|
||||
|
||||
d->blockedPolish = false;
|
||||
|
||||
if ( !d->isInitiallyPainted )
|
||||
if ( !d->initiallyPainted )
|
||||
{
|
||||
/*
|
||||
We should find a better way for identifying, when
|
||||
@ -866,7 +866,7 @@ QSGNode* QskQuickItem::updatePaintNode( QSGNode* node, UpdatePaintNodeData* data
|
||||
|
||||
Q_ASSERT( isVisible() || !( d->controlFlags & QskQuickItem::DeferredUpdate ) );
|
||||
|
||||
d->isInitiallyPainted = true;
|
||||
d->initiallyPainted = true;
|
||||
|
||||
if ( d->clearPreviousNodes )
|
||||
{
|
||||
|
@ -28,6 +28,10 @@ class QSK_EXPORT QskQuickItem : public QQuickItem
|
||||
Q_PROPERTY( bool polishOnResize READ polishOnResize
|
||||
WRITE setPolishOnResize NOTIFY itemFlagsChanged FINAL )
|
||||
|
||||
Q_PROPERTY( bool visibleToParent READ isVisibleToParent )
|
||||
Q_PROPERTY( bool hasChildItems READ hasChildItems )
|
||||
Q_PROPERTY( bool initiallyPainted READ isInitiallyPainted )
|
||||
|
||||
using Inherited = QQuickItem;
|
||||
|
||||
public:
|
||||
|
@ -25,7 +25,7 @@ QskQuickItemPrivate::QskQuickItemPrivate()
|
||||
, blockedPolish( false )
|
||||
, blockedImplicitSize( true )
|
||||
, clearPreviousNodes( false )
|
||||
, isInitiallyPainted( false )
|
||||
, initiallyPainted( false )
|
||||
{
|
||||
if ( controlFlags & QskQuickItem::DeferredLayout )
|
||||
{
|
||||
|
@ -55,7 +55,7 @@ class QskQuickItemPrivate : public QQuickItemPrivate
|
||||
bool blockedImplicitSize : 1;
|
||||
bool clearPreviousNodes : 1;
|
||||
|
||||
bool isInitiallyPainted : 1;
|
||||
bool initiallyPainted : 1;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user