Make cursor change when hovering over handle.

This commit is contained in:
Jim Evins
2015-08-14 16:49:09 -04:00
parent ffa0819010
commit ef1cadad0c
2 changed files with 16 additions and 9 deletions
+6 -2
View File
@@ -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 );
}