Rely on selectionModel() instead of currentIndex().

main
Teo Mrnjavac 9 years ago
parent 517f958616
commit 584ca6da18

@ -156,7 +156,8 @@ PartitionBarsView::drawSection( QPainter* painter, const QRect& rect_, int x, in
painter->drawRoundedRect( rect, radius, radius );
if ( index.isValid() &&
currentIndex() == index )
!selectionModel()->selectedIndexes().isEmpty() &&
selectionModel()->selectedIndexes().first() == index )
{
painter->setPen( QPen( borderColor, 1 ) );
QColor highlightColor = QPalette().highlight().color();

Loading…
Cancel
Save