mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -04:00
Fix deprecated warnings on Travis
This commit is contained in:
parent
08ab4d4b70
commit
4f0b9dda79
@ -59,8 +59,8 @@ void QgsGrassRegionEdit::canvasPressEvent( QgsMapMouseEvent * event )
|
|||||||
{
|
{
|
||||||
QgsDebugMsg( "entered." );
|
QgsDebugMsg( "entered." );
|
||||||
mDraw = true;
|
mDraw = true;
|
||||||
mRubberBand->reset( true );
|
mRubberBand->reset( QGis::Polygon );
|
||||||
mSrcRubberBand->reset( true );
|
mSrcRubberBand->reset( QGis::Polygon );
|
||||||
emit captureStarted();
|
emit captureStarted();
|
||||||
|
|
||||||
mStartPoint = toMapCoordinates( event->pos() );
|
mStartPoint = toMapCoordinates( event->pos() );
|
||||||
@ -93,8 +93,8 @@ void QgsGrassRegionEdit::canvasReleaseEvent( QgsMapMouseEvent * event )
|
|||||||
//! called when map tool is about to get inactive
|
//! called when map tool is about to get inactive
|
||||||
void QgsGrassRegionEdit::deactivate()
|
void QgsGrassRegionEdit::deactivate()
|
||||||
{
|
{
|
||||||
mRubberBand->reset( true );
|
mRubberBand->reset( QGis::Polygon );
|
||||||
mSrcRubberBand->reset( true );
|
mSrcRubberBand->reset( QGis::Polygon );
|
||||||
QgsMapTool::deactivate();
|
QgsMapTool::deactivate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ void QgsGrassRegionEdit::drawRegion( QgsMapCanvas *canvas, QgsRubberBand* rubber
|
|||||||
{
|
{
|
||||||
transform( canvas, points, coordinateTransform );
|
transform( canvas, points, coordinateTransform );
|
||||||
}
|
}
|
||||||
rubberBand->reset( isPolygon );
|
rubberBand->reset( isPolygon ? QGis::Polygon : QGis::Line );
|
||||||
for ( int i = 0; i < points.size(); i++ )
|
for ( int i = 0; i < points.size(); i++ )
|
||||||
{
|
{
|
||||||
bool update = false; // true to update canvas
|
bool update = false; // true to update canvas
|
||||||
|
Loading…
x
Reference in New Issue
Block a user