Skip to content

Commit

Permalink
Set extents / pos label tooltip in status bar appropriately to context
Browse files Browse the repository at this point in the history
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 eafcc2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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"));
}
}

Expand Down

0 comments on commit eafcc2b

Please sign in to comment.