Maybe we're restoring too much.

This commit is contained in:
Teo Mrnjavac 2016-02-16 14:14:35 +01:00
parent eac6b4f983
commit 2c5d33839b

View File

@ -135,7 +135,6 @@ PartitionBarsView::drawSection( QPainter* painter, const QRect& rect_, int x, in
rect.adjust( 0, 0, -1, -1 );
QGuiApplication::restoreOverrideCursor();
if ( selectionMode() != QAbstractItemView::NoSelection && // no hover without selection
m_hoveredIndex.isValid() &&
index == m_hoveredIndex )
@ -151,6 +150,7 @@ PartitionBarsView::drawSection( QPainter* painter, const QRect& rect_, int x, in
else
{
painter->setBrush( color );
QGuiApplication::restoreOverrideCursor();
}
QColor borderColor = color.darker();