Skip to content
Permalink
Browse files
Set extents / pos label tooltip in status bar appropriately to context
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9069 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 18, 2008
1 parent c7f881b commit eafcc2b8baf8f9dc23789b398e1ba04bbc7125cc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgisapp.cpp
@@ -1135,7 +1135,6 @@ void QgisApp::createStatusBar()
mCoordsLabel->setWhatsThis(tr("Shows the map coordinates at the "
"current cursor position. The display is continuously updated "
"as the mouse is moved."));
mCoordsLabel->setToolTip(tr("Map coordinates at mouse cursor position"));
statusBar()->addPermanentWidget(mCoordsLabel, 0);
// add a label to show current scale
mScaleLabel = new QLabel(QString(),statusBar());
@@ -4491,12 +4490,14 @@ void QgisApp::extentsViewToggled(bool theFlag)
{
//extents view mode!
mToggleExtentsViewButton->setIcon(getThemeIcon("extents.png"));
mCoordsLabel->setToolTip(tr("Map coordinates for the current view extents"));
showExtents();
}
else
{
//mouse cursor pos view mode!
mToggleExtentsViewButton->setIcon(getThemeIcon("tracking.png"));
mCoordsLabel->setToolTip(tr("Map coordinates at mouse cursor position"));
}
}

0 comments on commit eafcc2b

Please sign in to comment.