Skip to content
Permalink
Browse files

address @jef-n 's comment

  • Loading branch information
nirvn committed Aug 22, 2018
1 parent 1531c52 commit 9d5d49eb6f0cc4da86d8d606910e2054c15386c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgstilescalewidget.cpp
@@ -106,7 +106,7 @@ void QgsTileScaleWidget::mSlider_valueChanged( int value )
QgsDebugMsg( QString( "slider released at %1: %2" ).arg( mSlider->value() ).arg( mResolutions.at( mSlider->value() ) ) );

// Invert value in tooltip to match expectation (i.e. 0 = zoomed out, maximum = zoomed in)
QToolTip::showText( QCursor::pos(), QString( "Zoom level: %1\nResolution: %2" ).arg( mSlider->maximum() - value ).arg( mResolutions.at( value ) ), this );
QToolTip::showText( QCursor::pos(), tr( "Zoom level: %1" ).arg( mSlider->maximum() - value ) + "\n" + tr( "Resolution: %2" ).arg( mResolutions.at( value ) ), this );
mMapCanvas->zoomByFactor( mResolutions.at( mSlider->value() ) / mMapCanvas->mapUnitsPerPixel() );
}

0 comments on commit 9d5d49e

Please sign in to comment.
You can’t perform that action at this time.