Changeset 651 for trunk/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/graphicsview/qgraphicsscenebsptreeindex.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 636 636 update the BSP tree if necessary. 637 637 */ 638 void QGraphicsSceneBspTreeIndex::itemChange(const QGraphicsItem *item, QGraphicsItem::GraphicsItemChange change, const QVariant &value)638 void QGraphicsSceneBspTreeIndex::itemChange(const QGraphicsItem *item, QGraphicsItem::GraphicsItemChange change, const void *const value) 639 639 { 640 640 Q_D(QGraphicsSceneBspTreeIndex); … … 642 642 case QGraphicsItem::ItemFlagsChange: { 643 643 // Handle ItemIgnoresTransformations 644 QGraphicsItem::GraphicsItemFlags newFlags = *static_cast<const QGraphicsItem::GraphicsItemFlags *>(value); 644 645 bool ignoredTransform = item->d_ptr->flags & QGraphicsItem::ItemIgnoresTransformations; 645 bool willIgnoreTransform = value.toUInt()& QGraphicsItem::ItemIgnoresTransformations;646 bool willIgnoreTransform = newFlags & QGraphicsItem::ItemIgnoresTransformations; 646 647 bool clipsChildren = item->d_ptr->flags & QGraphicsItem::ItemClipsChildrenToShape; 647 bool willClipChildren = value.toUInt()& QGraphicsItem::ItemClipsChildrenToShape;648 bool willClipChildren = newFlags & QGraphicsItem::ItemClipsChildrenToShape; 648 649 if ((ignoredTransform != willIgnoreTransform) || (clipsChildren != willClipChildren)) { 649 650 QGraphicsItem *thatItem = const_cast<QGraphicsItem *>(item); … … 662 663 d->invalidateSortCache(); 663 664 // Handle ItemIgnoresTransformations 664 QGraphicsItem *newParent = qVariantValue<QGraphicsItem *>(value);665 const QGraphicsItem *newParent = static_cast<const QGraphicsItem *>(value); 665 666 bool ignoredTransform = item->d_ptr->itemIsUntransformable(); 666 667 bool willIgnoreTransform = (item->d_ptr->flags & QGraphicsItem::ItemIgnoresTransformations) … … 683 684 break; 684 685 } 685 return QGraphicsSceneIndex::itemChange(item, change, value);686 686 } 687 687 /*!
Note:
See TracChangeset
for help on using the changeset viewer.