Skip to content

Commit d9b95bc

Browse files
committedNov 1, 2013
Marked few drawing progress reporting signals as deprecated
1 parent ccd40bf commit d9b95bc

File tree

7 files changed

+10
-13
lines changed

7 files changed

+10
-13
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,8 +1898,6 @@ void QgisApp::setupConnections()
18981898
mMapCanvas, SLOT( setRenderFlag( bool ) ) );
18991899

19001900
// connect renderer
1901-
connect( mMapCanvas->mapRenderer(), SIGNAL( drawingProgress( int, int ) ),
1902-
this, SLOT( showProgress( int, int ) ) );
19031901
connect( mMapCanvas->mapRenderer(), SIGNAL( hasCrsTransformEnabled( bool ) ),
19041902
this, SLOT( hasCrsTransformEnabled( bool ) ) );
19051903
connect( mMapCanvas->mapRenderer(), SIGNAL( destinationSrsChanged() ),

‎src/core/qgsmaplayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class CORE_EXPORT QgsMapLayer : public QObject
396396

397397
signals:
398398

399-
/** Emit a signal to notify of a progress event */
399+
//! @deprecated in 2.1 - not emitted anymore
400400
void drawingProgress( int theProgress, int theTotalSteps );
401401

402402
/** Emit a signal with status (e.g. to be caught by QgisApp and display a msg on status bar) */

‎src/core/qgsmaprenderer.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,9 +713,6 @@ void QgsMapRenderer::onDrawingProgress( int current, int total )
713713
{
714714
Q_UNUSED( current );
715715
Q_UNUSED( total );
716-
// TODO: emit signal with progress
717-
// QgsDebugMsg(QString("onDrawingProgress: %1 / %2").arg(current).arg(total));
718-
emit updateMap();
719716
}
720717

721718
void QgsMapRenderer::setProjectionsEnabled( bool enabled )

‎src/core/qgsmaprenderer.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,14 @@ class CORE_EXPORT QgsMapRenderer : public QObject
291291

292292
signals:
293293

294+
//! @deprecated in 2.1 - not emitted anymore
294295
void drawingProgress( int current, int total );
295296

296297
void hasCrsTransformEnabled( bool flag );
297298

298299
void destinationSrsChanged();
299300

301+
//! @deprecated in 2.1 - not emitted anymore
300302
void updateMap();
301303

302304
void mapUnitsChanged();
@@ -306,7 +308,7 @@ class CORE_EXPORT QgsMapRenderer : public QObject
306308

307309
public slots:
308310

309-
//! called by signal from layer current being drawn
311+
//! @deprecated in 2.1 - does nothing
310312
Q_DECL_DEPRECATED void onDrawingProgress( int current, int total );
311313

312314
protected:

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,8 +1277,8 @@ void QgsRasterLayer::triggerRepaint()
12771277

12781278
void QgsRasterLayer::updateProgress( int theProgress, int theMax )
12791279
{
1280-
//simply propogate it on!
1281-
emit drawingProgress( theProgress, theMax );
1280+
Q_UNUSED( theProgress );
1281+
Q_UNUSED( theMax );
12821282
}
12831283

12841284
void QgsRasterLayer::onProgress( int theType, double theProgress, QString theMessage )

‎src/core/raster/qgsrasterlayer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
372372
public slots:
373373
void showStatusMessage( const QString & theMessage );
374374

375-
/** \brief Propagate progress updates from GDAL up to the parent app */
376-
void updateProgress( int, int );
375+
//! @deprecated in 2.1 - does nothing
376+
Q_DECL_DEPRECATED void updateProgress( int, int );
377377

378378
/** \brief receive progress signal from provider */
379379
void onProgress( int, double, QString );

‎src/gui/qgsmapcanvas.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
299299
/** The map units may have changed, so cope with that */
300300
void mapUnitsChanged();
301301

302-
//! \note Deprecated in 2.1 - does nothing - kept for API compatibility
303-
void updateMap();
302+
//! @deprecated in 2.1 - does nothing - kept for API compatibility
303+
Q_DECL_DEPRECATED void updateMap();
304304

305305
//! show whatever error is exposed by the QgsMapLayer.
306306
void showError( QgsMapLayer * mapLayer );

0 commit comments

Comments
 (0)
Please sign in to comment.