@@ -2328,40 +2328,37 @@ void QgisApp::createStatusBar()
2328
2328
mMagnifierWidget ->updateMagnification ( QSettings ().value ( " /qgis/magnifier_factor_default" , 1.0 ).toDouble () );
2329
2329
statusBar ()->addPermanentWidget ( mMagnifierWidget , 0 );
2330
2330
2331
- if ( QgsMapCanvas::rotationEnabled () )
2332
- {
2333
- // add a widget to show/set current rotation
2334
- mRotationLabel = new QLabel ( QString (), statusBar () );
2335
- mRotationLabel ->setObjectName ( " mRotationLabel" );
2336
- mRotationLabel ->setFont ( myFont );
2337
- mRotationLabel ->setMinimumWidth ( 10 );
2338
- // mRotationLabel->setMaximumHeight( 20 );
2339
- mRotationLabel ->setMargin ( 3 );
2340
- mRotationLabel ->setAlignment ( Qt::AlignCenter );
2341
- mRotationLabel ->setFrameStyle ( QFrame::NoFrame );
2342
- mRotationLabel ->setText ( tr ( " Rotation" ) );
2343
- mRotationLabel ->setToolTip ( tr ( " Current clockwise map rotation in degrees" ) );
2344
- statusBar ()->addPermanentWidget ( mRotationLabel , 0 );
2345
-
2346
- mRotationEdit = new QgsDoubleSpinBox ( statusBar () );
2347
- mRotationEdit ->setObjectName ( " mRotationEdit" );
2348
- mRotationEdit ->setClearValue ( 0.0 );
2349
- mRotationEdit ->setKeyboardTracking ( false );
2350
- mRotationEdit ->setMaximumWidth ( 120 );
2351
- mRotationEdit ->setDecimals ( 1 );
2352
- mRotationEdit ->setRange ( -180.0 , 180.0 );
2353
- mRotationEdit ->setWrapping ( true );
2354
- mRotationEdit ->setSingleStep ( 5.0 );
2355
- mRotationEdit ->setFont ( myFont );
2356
- mRotationEdit ->setWhatsThis ( tr ( " Shows the current map clockwise rotation "
2357
- " in degrees. It also allows editing to set "
2358
- " the rotation" ) );
2359
- mRotationEdit ->setToolTip ( tr ( " Current clockwise map rotation in degrees" ) );
2360
- statusBar ()->addPermanentWidget ( mRotationEdit , 0 );
2361
- connect ( mRotationEdit , SIGNAL ( valueChanged ( double ) ), this , SLOT ( userRotation () ) );
2362
-
2363
- showRotation ();
2364
- }
2331
+ // add a widget to show/set current rotation
2332
+ mRotationLabel = new QLabel ( QString (), statusBar () );
2333
+ mRotationLabel ->setObjectName ( " mRotationLabel" );
2334
+ mRotationLabel ->setFont ( myFont );
2335
+ mRotationLabel ->setMinimumWidth ( 10 );
2336
+ // mRotationLabel->setMaximumHeight( 20 );
2337
+ mRotationLabel ->setMargin ( 3 );
2338
+ mRotationLabel ->setAlignment ( Qt::AlignCenter );
2339
+ mRotationLabel ->setFrameStyle ( QFrame::NoFrame );
2340
+ mRotationLabel ->setText ( tr ( " Rotation" ) );
2341
+ mRotationLabel ->setToolTip ( tr ( " Current clockwise map rotation in degrees" ) );
2342
+ statusBar ()->addPermanentWidget ( mRotationLabel , 0 );
2343
+
2344
+ mRotationEdit = new QgsDoubleSpinBox ( statusBar () );
2345
+ mRotationEdit ->setObjectName ( " mRotationEdit" );
2346
+ mRotationEdit ->setClearValue ( 0.0 );
2347
+ mRotationEdit ->setKeyboardTracking ( false );
2348
+ mRotationEdit ->setMaximumWidth ( 120 );
2349
+ mRotationEdit ->setDecimals ( 1 );
2350
+ mRotationEdit ->setRange ( -180.0 , 180.0 );
2351
+ mRotationEdit ->setWrapping ( true );
2352
+ mRotationEdit ->setSingleStep ( 5.0 );
2353
+ mRotationEdit ->setFont ( myFont );
2354
+ mRotationEdit ->setWhatsThis ( tr ( " Shows the current map clockwise rotation "
2355
+ " in degrees. It also allows editing to set "
2356
+ " the rotation" ) );
2357
+ mRotationEdit ->setToolTip ( tr ( " Current clockwise map rotation in degrees" ) );
2358
+ statusBar ()->addPermanentWidget ( mRotationEdit , 0 );
2359
+ connect ( mRotationEdit , SIGNAL ( valueChanged ( double ) ), this , SLOT ( userRotation () ) );
2360
+
2361
+ showRotation ();
2365
2362
2366
2363
// render suppression status bar widget
2367
2364
mRenderSuppressionCBox = new QCheckBox ( tr ( " Render" ), statusBar () );
0 commit comments