21 #include <QApplication>
22 #include <QProgressDialog>
35 canvasMapSettingsChanged();
36 canvasCurrentLayerChanged();
39 void QgsMapCanvasSnappingUtils::canvasMapSettingsChanged()
45 void QgsMapCanvasSnappingUtils::canvasTransformContextChanged()
52 void QgsMapCanvasSnappingUtils::canvasCurrentLayerChanged()
57 void QgsMapCanvasSnappingUtils::canvasMapToolChanged()
64 QApplication::setOverrideCursor( Qt::WaitCursor );
65 mProgress =
new QProgressDialog( tr(
"Indexing data…" ), QString(), 0, count, mCanvas->topLevelWidget() );
66 mProgress->setWindowModality( Qt::WindowModal );
74 mProgress->setValue( index );
75 if ( index == mProgress->maximum() )
79 QApplication::restoreOverrideCursor();