Skip to content
Permalink
Browse files
Fix some suffixes for spin boxes
  • Loading branch information
nyalldawson committed Mar 16, 2017
1 parent b0dc9f8 commit 47a71135a40fe58dcfd5eb9e872c3a94805d54c5
Showing with 3 additions and 1 deletion.
  1. +1 −0 src/app/qgisapp.cpp
  2. +2 −1 src/app/qgsmapcanvasdockwidget.cpp
@@ -2556,6 +2556,7 @@ void QgisApp::createStatusBar()
mRotationEdit->setWrapping( true );
mRotationEdit->setSingleStep( 5.0 );
mRotationEdit->setFont( myFont );
mRotationEdit->setSuffix( trUtf8( " °" ) );
mRotationEdit->setWhatsThis( tr( "Shows the current map clockwise rotation "
"in degrees. It also allows editing to set "
"the rotation" ) );
@@ -410,6 +410,7 @@ QgsMapSettingsAction::QgsMapSettingsAction( QWidget *parent )
mRotationWidget->setRange( -180.0, 180.0 );
mRotationWidget->setWrapping( true );
mRotationWidget->setSingleStep( 5.0 );
mRotationWidget->setSuffix( trUtf8( " °" ) );
mRotationWidget->setToolTip( tr( "Current clockwise map rotation in degrees" ) );

label = new QLabel( tr( "Rotation" ) );
@@ -441,7 +442,7 @@ QgsMapSettingsAction::QgsMapSettingsAction( QWidget *parent )
gLayout->addWidget( mSyncScaleCheckBox, 3, 0, 1, 2 );

mScaleFactorWidget = new QgsDoubleSpinBox();
mScaleFactorWidget->setSuffix( QStringLiteral( "×" ) );
mScaleFactorWidget->setSuffix( trUtf8( "×" ) );
mScaleFactorWidget->setDecimals( 2 );
mScaleFactorWidget->setRange( 0.01, 100000 );
mScaleFactorWidget->setWrapping( false );

1 comment on commit 47a7113

@m-kuhn

This comment has been minimized.

Copy link
Member

@m-kuhn m-kuhn commented on 47a7113 Mar 16, 2017

Thanks @nyalldawson these kind of small patches make life easier.
I was wondering about the spacing, did you add that based on some reference? Reading a random source from the internet (# 15) it looks like ° shouldn't receive a space?

Please sign in to comment.