Changeset 651 for trunk/src/gui/itemviews/qabstractitemview.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/itemviews/qabstractitemview.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) … … 147 147 return; 148 148 149 q->update(hover); //update the old one 149 if (selectionBehavior != QAbstractItemView::SelectRows) { 150 q->update(hover); //update the old one 151 q->update(index); //update the new one 152 } else { 153 QRect oldHoverRect = q->visualRect(hover); 154 QRect newHoverRect = q->visualRect(index); 155 viewport->update(QRect(0, newHoverRect.y(), viewport->width(), newHoverRect.height())); 156 viewport->update(QRect(0, oldHoverRect.y(), viewport->width(), oldHoverRect.height())); 157 } 150 158 hover = index; 151 q->update(hover); //update the new one152 159 } 153 160
Note:
See TracChangeset
for help on using the changeset viewer.