mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
In the labels view too.
This commit is contained in:
parent
db69a860b0
commit
9ecd23dfc7
1 changed files with 7 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
#include <KFormat>
|
||||
|
||||
// Qt
|
||||
#include <QGuiApplication>
|
||||
#include <QMouseEvent>
|
||||
#include <QPainter>
|
||||
|
||||
|
@ -558,6 +559,11 @@ PartitionLabelsView::mouseMoveEvent( QMouseEvent* event )
|
|||
else
|
||||
m_hoveredIndex = QModelIndex();
|
||||
|
||||
if ( !canBeSelected( m_hoveredIndex ) )
|
||||
QGuiApplication::setOverrideCursor( Qt::ForbiddenCursor );
|
||||
else
|
||||
QGuiApplication::restoreOverrideCursor();
|
||||
|
||||
viewport()->repaint();
|
||||
}
|
||||
|
||||
|
@ -565,6 +571,7 @@ PartitionLabelsView::mouseMoveEvent( QMouseEvent* event )
|
|||
void
|
||||
PartitionLabelsView::leaveEvent( QEvent* event )
|
||||
{
|
||||
QGuiApplication::restoreOverrideCursor();
|
||||
if ( m_hoveredIndex.isValid() )
|
||||
{
|
||||
m_hoveredIndex = QModelIndex();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue