mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 02:45:37 -04:00
Try the forbidden cursor when hovering an unselectable partition.
This commit is contained in:
parent
178b24e0b0
commit
1aa8279cf8
1 changed files with 5 additions and 1 deletions
|
@ -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 )
|
||||
{
|
||||
painter->setBrush( color.lighter( 115 ) );
|
||||
if ( canBeSelected( index ) )
|
||||
painter->setBrush( color.lighter( 115 ) );
|
||||
else
|
||||
setCursor( Qt::ForbiddenCursor );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue