Skip to content
Permalink
Browse files

use wait cursor when zooming to layers and groups from layer tree

  • Loading branch information
jef-n committed Mar 30, 2016
1 parent 1cc82af commit c9438a4144e1f75b14cfb71810eedb1f64a81774
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/layertree/qgslayertreeviewdefaultactions.cpp
@@ -197,14 +197,18 @@ void QgsLayerTreeViewDefaultActions::zoomToLayer()
{
QAction* s = qobject_cast<QAction*>( sender() );
QgsMapCanvas* canvas = reinterpret_cast<QgsMapCanvas*>( s->data().value<void*>() );
QApplication::setOverrideCursor( Qt::WaitCursor );
zoomToLayer( canvas );
QApplication::restoreOverrideCursor();
}

void QgsLayerTreeViewDefaultActions::zoomToGroup()
{
QAction* s = qobject_cast<QAction*>( sender() );
QgsMapCanvas* canvas = reinterpret_cast<QgsMapCanvas*>( s->data().value<void*>() );
QApplication::setOverrideCursor( Qt::WaitCursor );
zoomToGroup( canvas );
QApplication::restoreOverrideCursor();
}


0 comments on commit c9438a4

Please sign in to comment.
You can’t perform that action at this time.