Skip to content

Commit

Permalink
Added renderStarting() signal to QgsMapCanvas.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12955 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Feb 18, 2010
1 parent 6369374 commit 73a878d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/gui/qgsmapcanvas.sip
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ class QgsMapCanvas : QGraphicsView

*/
void renderComplete(QPainter *);


/** Emitted when the canvas is about to be rendered.
\note Added in 1.5 */
void renderStarting();

//! Emitted when a new set of layers has been received
void layersChanged();

Expand Down
3 changes: 3 additions & 0 deletions src/gui/qgsmapcanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ void QgsMapCanvas::refresh()

// Tell the user we're going to be a while
QApplication::setOverrideCursor( Qt::WaitCursor );

emit renderStarting();

mMap->render();

mDirty = false;
Expand Down
4 changes: 4 additions & 0 deletions src/gui/qgsmapcanvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
*/
void renderComplete( QPainter * );

/** Emitted when the canvas is about to be rendered.
\note Added in 1.5 */
void renderStarting();

//! Emitted when a new set of layers has been received
void layersChanged();

Expand Down

0 comments on commit 73a878d

Please sign in to comment.