File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -197,14 +197,18 @@ void QgsLayerTreeViewDefaultActions::zoomToLayer()
197
197
{
198
198
QAction* s = qobject_cast<QAction*>( sender () );
199
199
QgsMapCanvas* canvas = reinterpret_cast <QgsMapCanvas*>( s->data ().value <void *>() );
200
+ QApplication::setOverrideCursor ( Qt::WaitCursor );
200
201
zoomToLayer ( canvas );
202
+ QApplication::restoreOverrideCursor ();
201
203
}
202
204
203
205
void QgsLayerTreeViewDefaultActions::zoomToGroup ()
204
206
{
205
207
QAction* s = qobject_cast<QAction*>( sender () );
206
208
QgsMapCanvas* canvas = reinterpret_cast <QgsMapCanvas*>( s->data ().value <void *>() );
209
+ QApplication::setOverrideCursor ( Qt::WaitCursor );
207
210
zoomToGroup ( canvas );
211
+ QApplication::restoreOverrideCursor ();
208
212
}
209
213
210
214
You can’t perform that action at this time.
0 commit comments