Skip to content

Commit 79d6407

Browse files
committed
Set cursor to pan cursor when space-dragging canvas
1 parent 5377952 commit 79d6407

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/qgsmapcanvas.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,7 @@ void QgsMapCanvas::keyPressEvent( QKeyEvent * e )
12551255
//mCanvasProperties->dragging = true;
12561256
if ( ! e->isAutoRepeat() )
12571257
{
1258+
QApplication::setOverrideCursor( Qt::ClosedHandCursor );
12581259
mCanvasProperties->panSelectorDown = true;
12591260
mCanvasProperties->rubberStartPoint = mCanvasProperties->mouseLastXY;
12601261
}
@@ -1308,7 +1309,7 @@ void QgsMapCanvas::keyReleaseEvent( QKeyEvent * e )
13081309
if ( !e->isAutoRepeat() && mCanvasProperties->panSelectorDown )
13091310
{
13101311
QgsDebugMsg( "Releasing pan selector" );
1311-
1312+
QApplication::restoreOverrideCursor();
13121313
mCanvasProperties->panSelectorDown = false;
13131314
panActionEnd( mCanvasProperties->mouseLastXY );
13141315
}

0 commit comments

Comments
 (0)