Skip to content
Permalink
Browse files

Fix some status bar widgets could not be hidden via customisation

  • Loading branch information
nyalldawson committed Jun 14, 2016
1 parent e765719 commit 21f37303e809a5b88c13288450bf8a35172115e2
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgisapp.cpp
@@ -2281,17 +2281,20 @@ void QgisApp::createStatusBar()

//coords status bar widget
mCoordsEdit = new QgsStatusBarCoordinatesWidget( statusBar() );
mCoordsEdit->setObjectName( "mCoordsEdit" );
mCoordsEdit->setMapCanvas( mMapCanvas );
mCoordsEdit->setFont( myFont );
statusBar()->addPermanentWidget( mCoordsEdit, 0 );

mScaleWidget = new QgsStatusBarScaleWidget( mMapCanvas, statusBar() );
mScaleWidget->setObjectName( "mScaleWidget" );
mScaleWidget->setFont( myFont );
connect( mScaleWidget, SIGNAL( scaleLockChanged( bool ) ), mMapCanvas, SLOT( setScaleLocked( bool ) ) );
statusBar()->addPermanentWidget( mScaleWidget, 0 );

// zoom widget
mMagnifierWidget = new QgsStatusBarMagnifierWidget( statusBar() );
mMagnifierWidget->setObjectName( "mMagnifierWidget" );
mMagnifierWidget->setFont( myFont );
connect( mMapCanvas, SIGNAL( magnificationChanged( double ) ), mMagnifierWidget, SLOT( updateMagnification( double ) ) );
connect( mMagnifierWidget, SIGNAL( magnificationChanged( double ) ), mMapCanvas, SLOT( setMagnificationFactor( double ) ) );

0 comments on commit 21f3730

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