Skip to content

Commit eb5b428

Browse files
committedJul 1, 2016
Make measure dialog only stay on top of QGIS window (fix #12261)
(cherry-picked from 340a6f6)
1 parent 4235f9e commit eb5b428

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎src/app/qgsmaptoolmeasureangle.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ void QgsMapToolMeasureAngle::canvasReleaseEvent( QgsMapMouseEvent* e )
9393
{
9494
if ( !mResultDisplay )
9595
{
96-
mResultDisplay = new QgsDisplayAngle( this, Qt::WindowStaysOnTopHint );
96+
mResultDisplay = new QgsDisplayAngle( this );
97+
mResultDisplay->setWindowFlags( mResultDisplay->windowFlags() | Qt::Tool );
9798
QObject::connect( mResultDisplay, SIGNAL( rejected() ), this, SLOT( stopMeasuring() ) );
9899
}
99100
configureDistanceArea();

‎src/app/qgsmeasuretool.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ QgsMeasureTool::QgsMeasureTool( QgsMapCanvas* canvas, bool measureArea )
4747
// Append point we will move
4848
mPoints.append( QgsPoint( 0, 0 ) );
4949

50-
mDialog = new QgsMeasureDialog( this, Qt::WindowStaysOnTopHint );
50+
mDialog = new QgsMeasureDialog( this );
51+
mDialog->setWindowFlags( mDialog->windowFlags() | Qt::Tool );
5152
mDialog->restorePosition();
5253

5354
connect( canvas, SIGNAL( destinationCrsChanged() ),

0 commit comments

Comments
 (0)
Please sign in to comment.