QGraphicsView: remove even more vestiges of QtDeclarative1
The field is never set and thus never used meaningfully. Change-Id: Ia45afa6339d38316d76766a736ba8cb1ce9f58fa Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
7981501298
commit
002d95dc85
@ -904,7 +904,6 @@ QGraphicsItemPrivate::QGraphicsItemPrivate()
|
||||
scenePosDescendants(false),
|
||||
pendingPolish(false),
|
||||
mayHaveChildWithGraphicsEffect(false),
|
||||
isDeclarativeItem(false),
|
||||
sendParentChangeNotification(false),
|
||||
dirtyChildrenBoundingRect(true),
|
||||
globalStackingOrder(-1),
|
||||
|
@ -415,10 +415,9 @@ public:
|
||||
quint32 scenePosDescendants : 1;
|
||||
quint32 pendingPolish : 1;
|
||||
quint32 mayHaveChildWithGraphicsEffect : 1;
|
||||
quint32 isDeclarativeItem : 1;
|
||||
quint32 sendParentChangeNotification : 1;
|
||||
quint32 dirtyChildrenBoundingRect : 1;
|
||||
quint32 padding : 19;
|
||||
quint32 padding : 20;
|
||||
|
||||
// Optional stacking order
|
||||
int globalStackingOrder;
|
||||
|
@ -2417,16 +2417,12 @@ void QGraphicsScene::addItem(QGraphicsItem *item)
|
||||
return;
|
||||
}
|
||||
|
||||
// QDeclarativeItems do not rely on initial itemChanged message, as the componentComplete
|
||||
// function allows far more opportunity for delayed-construction optimization.
|
||||
if (!item->d_ptr->isDeclarativeItem) {
|
||||
if (d->unpolishedItems.isEmpty()) {
|
||||
QMetaMethod method = metaObject()->method(d->polishItemsIndex);
|
||||
method.invoke(this, Qt::QueuedConnection);
|
||||
}
|
||||
d->unpolishedItems.append(item);
|
||||
item->d_ptr->pendingPolish = true;
|
||||
if (d->unpolishedItems.isEmpty()) {
|
||||
QMetaMethod method = metaObject()->method(d->polishItemsIndex);
|
||||
method.invoke(this, Qt::QueuedConnection);
|
||||
}
|
||||
d->unpolishedItems.append(item);
|
||||
item->d_ptr->pendingPolish = true;
|
||||
|
||||
// Detach this item from its parent if the parent's scene is different
|
||||
// from this scene.
|
||||
|
Loading…
Reference in New Issue
Block a user