From: Volker Krause Date: Fri, 30 Nov 2012 10:45:56 +0000 (+0100) Subject: Compile with -no-feature-cursor. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=85adf60ae1798ce82f5b2605ca9906401e8ec5ac;p=konrad%2Fqtdeclarative.git Compile with -no-feature-cursor. Change-Id: I47fa7b978a8087086161b1e7bde2e0b2f91fd6e5 Reviewed-by: Sérgio Martins Reviewed-by: Thomas McGuire --- diff --git a/src/quick/items/qquickitem.cpp b/src/quick/items/qquickitem.cpp index e557ce4..2340da9 100644 --- a/src/quick/items/qquickitem.cpp +++ b/src/quick/items/qquickitem.cpp @@ -2186,9 +2186,11 @@ void QQuickItemPrivate::addChild(QQuickItem *child) 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); @@ -2207,9 +2209,11 @@ void QQuickItemPrivate::removeChild(QQuickItem *child) 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);