Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
1 addition
and
1 deletion.
-
+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() ); |
|
|
} |
|
|
|
|
|