Skip to content

Commit 47a7113

Browse files
committedMar 16, 2017
Fix some suffixes for spin boxes
1 parent b0dc9f8 commit 47a7113

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,6 +2556,7 @@ void QgisApp::createStatusBar()
25562556
mRotationEdit->setWrapping( true );
25572557
mRotationEdit->setSingleStep( 5.0 );
25582558
mRotationEdit->setFont( myFont );
2559+
mRotationEdit->setSuffix( trUtf8( " °" ) );
25592560
mRotationEdit->setWhatsThis( tr( "Shows the current map clockwise rotation "
25602561
"in degrees. It also allows editing to set "
25612562
"the rotation" ) );

‎src/app/qgsmapcanvasdockwidget.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ QgsMapSettingsAction::QgsMapSettingsAction( QWidget *parent )
410410
mRotationWidget->setRange( -180.0, 180.0 );
411411
mRotationWidget->setWrapping( true );
412412
mRotationWidget->setSingleStep( 5.0 );
413+
mRotationWidget->setSuffix( trUtf8( " °" ) );
413414
mRotationWidget->setToolTip( tr( "Current clockwise map rotation in degrees" ) );
414415

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

443444
mScaleFactorWidget = new QgsDoubleSpinBox();
444-
mScaleFactorWidget->setSuffix( QStringLiteral( "×" ) );
445+
mScaleFactorWidget->setSuffix( trUtf8( "×" ) );
445446
mScaleFactorWidget->setDecimals( 2 );
446447
mScaleFactorWidget->setRange( 0.01, 100000 );
447448
mScaleFactorWidget->setWrapping( false );

1 commit comments

Comments
 (1)

m-kuhn commented on Mar 16, 2017

@m-kuhn
Member

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.