6 #include <QApplication>
7 #include <QProgressDialog>
14 connect( canvas, SIGNAL( extentsChanged() ),
this, SLOT( canvasMapSettingsChanged() ) );
15 connect( canvas, SIGNAL( destinationCrsChanged() ),
this, SLOT( canvasMapSettingsChanged() ) );
16 connect( canvas, SIGNAL( layersChanged() ),
this, SLOT( canvasMapSettingsChanged() ) );
17 connect( canvas, SIGNAL( currentLayerChanged(
QgsMapLayer* ) ),
this, SLOT( canvasCurrentLayerChanged() ) );
18 canvasMapSettingsChanged();
19 canvasCurrentLayerChanged();
22 void QgsMapCanvasSnappingUtils::canvasMapSettingsChanged()
27 void QgsMapCanvasSnappingUtils::canvasCurrentLayerChanged()
34 QApplication::setOverrideCursor( Qt::WaitCursor );
35 mProgress =
new QProgressDialog(
tr(
"Indexing data..." ), QString(), 0, count, mCanvas->topLevelWidget() );
36 mProgress->setWindowModality( Qt::WindowModal );
41 mProgress->setValue( index );
42 if ( index == mProgress->maximum() )
46 QApplication::restoreOverrideCursor();