Changeset 846 for trunk/src/gui/itemviews/qtreeview.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/gui/itemviews/qtreeview.cpp (modified) (31 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/itemviews/qtreeview.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 675 675 // since QAbstractItemView::dataChanged() will get the visualRect for the items anyway 676 676 677 677 678 int topViewIndex = d->viewIndex(topLeft); 678 if (topViewIndex == 0) 679 d->defaultItemHeight = indexRowSizeHint(topLeft); 680 bool sizeChanged = false; 679 if (topViewIndex == 0) { 680 int newDefaultItemHeight = indexRowSizeHint(topLeft); 681 sizeChanged = d->defaultItemHeight != newDefaultItemHeight; 682 d->defaultItemHeight = newDefaultItemHeight; 683 } 684 681 685 if (topViewIndex != -1) { 682 if (topLeft == bottomRight) {686 if (topLeft) { 683 687 int oldHeight = d->itemHeight(topViewIndex); 684 688 d->invalidateHeightCache(topViewIndex); 685 sizeChanged = (oldHeight != d->itemHeight(topViewIndex)); 689 sizeChanged |= (oldHeight != d->itemHeight(topViewIndex)); 690 if (topLeft.column() == 0) 691 d->viewItems[topViewIndex].hasChildren = d->hasVisibleChildren(topLeft); 686 692 } else { 687 693 int bottomViewIndex = d->viewIndex(bottomRight); … … 690 696 d->invalidateHeightCache(i); 691 697 sizeChanged |= (oldHeight != d->itemHeight(i)); 698 699 692 700 } 693 701 } …
