Skip to content
Permalink
Browse files
Replaces ProjectionEnable Icons and text
Replaces the OFT enable and Disable Icons to use the same CRS Icon as in options

Changes behavior on CRS TEXT showing when OTF is off, instead of when it's ON.
  • Loading branch information
SrNetoChan committed Jan 16, 2017
1 parent 0fdd168 commit 14c4dea4db1b10c1dc25b43130b8e9d0b41ed39a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -10275,13 +10275,13 @@ void QgisApp::updateCrsStatusBar()

if ( mMapCanvas->mapSettings().hasCrsTransformEnabled() )
{
mOnTheFlyProjectionStatusButton->setText( tr( "%1 (OTF)" ).arg( mOnTheFlyProjectionStatusButton->text() ) );
mOnTheFlyProjectionStatusButton->setToolTip(
tr( "Current CRS: %1 (OTF enabled)" ).arg( mMapCanvas->mapSettings().destinationCrs().description() ) );
mOnTheFlyProjectionStatusButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconProjectionEnabled.svg" ) ) );
}
else
{
mOnTheFlyProjectionStatusButton->setText( tr( "%1 (OTF off)" ).arg( mOnTheFlyProjectionStatusButton->text() ) );
mOnTheFlyProjectionStatusButton->setToolTip(
tr( "Current CRS: %1 (OTF disabled)" ).arg( mMapCanvas->mapSettings().destinationCrs().description() ) );
mOnTheFlyProjectionStatusButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconProjectionDisabled.svg" ) ) );

0 comments on commit 14c4dea

Please sign in to comment.