childItems.append(child);
+#ifndef QT_NO_CURSOR
QQuickItemPrivate *childPrivate = QQuickItemPrivate::get(child);
if (childPrivate->extra.isAllocated())
incrementCursorCount(childPrivate->extra.value().numItemsWithCursor);
+#endif
markSortedChildrenDirty(child);
dirty(QQuickItemPrivate::ChildrenChanged);
childItems.removeOne(child);
Q_ASSERT(!childItems.contains(child));
+#ifndef QT_NO_CURSOR
QQuickItemPrivate *childPrivate = QQuickItemPrivate::get(child);
if (childPrivate->extra.isAllocated())
incrementCursorCount(-childPrivate->extra.value().numItemsWithCursor);
+#endif
markSortedChildrenDirty(child);
dirty(QQuickItemPrivate::ChildrenChanged);