Skip to content

Commit

Permalink
[UX] homogenize labels for zoom to native resolution action
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Oct 6, 2015
1 parent 95e829d commit 6378056
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsapplayertreeviewmenuprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ QMenu* QgsAppLayerTreeViewMenuProvider::createContextMenu()

if ( rlayer )
{
menu->addAction( tr( "&Zoom to Best Scale (100%)" ), QgisApp::instance(), SLOT( legendLayerZoomNative() ) );
menu->addAction( QgsApplication::getThemeIcon( "/mActionZoomActual.svg" ), tr( "&Zoom to Native Resolution (100%)" ), QgisApp::instance(), SLOT( legendLayerZoomNative() ) );

if ( rlayer->rasterType() != QgsRasterLayer::Palette )
menu->addAction( tr( "&Stretch Using Current Extent" ), QgisApp::instance(), SLOT( legendLayerStretchUsingCurrentExtent() ) );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgisinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class GUI_EXPORT QgisInterface : public QObject
virtual QAction *actionZoomLast() = 0;
//! Get access to the native zoom next action. Call trigger() on it to zoom to next.
virtual QAction *actionZoomNext() = 0;
//! Get access to the native zoom actual size action. Call trigger() on it to zoom to actual size.
//! Get access to the native zoom resolution (100%) action. Call trigger() on it to zoom to actual size.
virtual QAction *actionZoomActualSize() = 0;
//! Get access to the native map tips action. Call trigger() on it to toggle map tips.
virtual QAction *actionMapTips() = 0;
Expand Down
6 changes: 3 additions & 3 deletions src/ui/qgisapp.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<x>0</x>
<y>0</y>
<width>1050</width>
<height>20</height>
<height>27</height>
</rect>
</property>
<property name="toolTip">
Expand Down Expand Up @@ -1105,10 +1105,10 @@
<normaloff>:/images/themes/default/mActionZoomActual.svg</normaloff>:/images/themes/default/mActionZoomActual.svg</iconset>
</property>
<property name="text">
<string>Zoom Actual Size</string>
<string>Zoom to Native Resolution (100%)</string>
</property>
<property name="toolTip">
<string>Zoom to Native Pixel Resolution</string>
<string>Zoom to Native Resolution (100%)</string>
</property>
</action>
<action name="mActionMapTips">
Expand Down

0 comments on commit 6378056

Please sign in to comment.