Try the forbidden cursor when hovering an unselectable partition.
This commit is contained in:
parent
178b24e0b0
commit
1aa8279cf8
@ -134,11 +134,15 @@ PartitionBarsView::drawSection( QPainter* painter, const QRect& rect_, int x, in
|
||||
rect.adjust( 0, 0, -1, -1 );
|
||||
|
||||
|
||||
setCursor( Qt::ArrowCursor);
|
||||
if ( selectionMode() != QAbstractItemView::NoSelection && // no hover without selection
|
||||
m_hoveredIndex.isValid() &&
|
||||
index == m_hoveredIndex )
|
||||
{
|
||||
if ( canBeSelected( index ) )
|
||||
painter->setBrush( color.lighter( 115 ) );
|
||||
else
|
||||
setCursor( Qt::ForbiddenCursor );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user