Make cursor change when hovering over handle.
This commit is contained in:
+6
-2
@@ -345,8 +345,12 @@ glabels::View::mouseMoveEvent( QMouseEvent* event )
|
||||
{
|
||||
|
||||
case IdleState:
|
||||
/* @TODO handle handles. */
|
||||
if ( mModel->objectAt( mZoom, xWorld, yWorld ) )
|
||||
if ( mModel->isSelectionAtomic() &&
|
||||
mModel->handleAt( mZoom, xWorld, yWorld ) )
|
||||
{
|
||||
setCursor( Qt::CrossCursor );
|
||||
}
|
||||
else if ( mModel->objectAt( mZoom, xWorld, yWorld ) )
|
||||
{
|
||||
setCursor( Qt::SizeAllCursor );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user