@@ -1759,11 +1759,14 @@ void QgisApp::createStatusBar()
17591759 mRotationLabel ->setToolTip ( tr ( " Current clockwise map rotation in degrees" ) );
17601760 statusBar ()->addPermanentWidget ( mRotationLabel , 0 );
17611761
1762- mRotationEdit = new QSpinBox ( statusBar () );
1762+ mRotationEdit = new QgsDoubleSpinBox ( statusBar () );
17631763 mRotationEdit ->setObjectName ( " mRotationEdit" );
1764- mRotationEdit ->setMaximumWidth ( 100 );
1764+ mRotationEdit ->setClearValue ( 0.0 );
1765+ mRotationEdit ->setKeyboardTracking ( false );
1766+ mRotationEdit ->setMaximumWidth ( 120 );
1767+ mRotationEdit ->setDecimals ( 1 );
17651768 mRotationEdit ->setMaximumHeight ( 20 );
1766- mRotationEdit ->setRange ( -180 , 180 );
1769+ mRotationEdit ->setRange ( -180.0 , 180.0 );
17671770 mRotationEdit ->setWrapping ( true );
17681771 mRotationEdit ->setSingleStep ( 5.0 );
17691772 mRotationEdit ->setFont ( myFont );
@@ -1772,7 +1775,7 @@ void QgisApp::createStatusBar()
17721775 " the rotation" ) );
17731776 mRotationEdit ->setToolTip ( tr ( " Current clockwise map rotation in degrees" ) );
17741777 statusBar ()->addPermanentWidget ( mRotationEdit , 0 );
1775- connect ( mRotationEdit , SIGNAL ( valueChanged ( int ) ), this , SLOT ( userRotation () ) );
1778+ connect ( mRotationEdit , SIGNAL ( valueChanged ( double ) ), this , SLOT ( userRotation () ) );
17761779
17771780 showRotation ();
17781781
0 commit comments