Skip to content
Permalink
Browse files

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

  • Loading branch information
nyalldawson committed Jun 25, 2016
1 parent d9a1df9 commit 340a6f654b5803f21a89ccbc22950cca80f4331b
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 340a6f6

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