Skip to content
Permalink
Browse files

Make measure dialog only stay on top of QGIS window (fix #12261)

(cherry-picked from 340a6f6)
  • Loading branch information
nyalldawson committed Jul 1, 2016
1 parent 4235f9e commit eb5b428ef020c1437c8eb26803bdff8efb7ee33c
Showing with 4 additions and 2 deletions.
  1. +2 −1 src/app/qgsmaptoolmeasureangle.cpp
  2. +2 −1 src/app/qgsmeasuretool.cpp
@@ -93,7 +93,8 @@ void QgsMapToolMeasureAngle::canvasReleaseEvent( QgsMapMouseEvent* e )
{
if ( !mResultDisplay )
{
mResultDisplay = new QgsDisplayAngle( this, Qt::WindowStaysOnTopHint );
mResultDisplay = new QgsDisplayAngle( this );
mResultDisplay->setWindowFlags( mResultDisplay->windowFlags() | Qt::Tool );
QObject::connect( mResultDisplay, SIGNAL( rejected() ), this, SLOT( stopMeasuring() ) );
}
configureDistanceArea();
@@ -47,7 +47,8 @@ QgsMeasureTool::QgsMeasureTool( QgsMapCanvas* canvas, bool measureArea )
// Append point we will move
mPoints.append( QgsPoint( 0, 0 ) );

mDialog = new QgsMeasureDialog( this, Qt::WindowStaysOnTopHint );
mDialog = new QgsMeasureDialog( this );
mDialog->setWindowFlags( mDialog->windowFlags() | Qt::Tool );
mDialog->restorePosition();

connect( canvas, SIGNAL( destinationCrsChanged() ),

0 comments on commit eb5b428

Please sign in to comment.
You can’t perform that action at this time.