From e266d4e9d1eef9a9704fbc59b50aa0aeef43ebf8 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 24 Apr 2011 01:40:03 +0200 Subject: [PATCH] [qt] Added tooltips for my position --- qt/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index 1040014222..47f8c93e27 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -238,6 +238,7 @@ void MainWindow::CreateNavigationBar() this, SLOT(OnMyPosition())); m_pMyPosition->setCheckable(true); + m_pMyPosition->setToolTip(tr("My Position")); // add view actions 1 button_t arr[] = { @@ -343,6 +344,7 @@ void MainWindow::OnPreferences() void MainWindow::OnLocationFound() { m_pMyPosition->setIcon(QIcon(":/navig64/location.png")); + m_pMyPosition->setToolTip(tr("My Position")); } void MainWindow::OnMyPosition() @@ -350,11 +352,13 @@ void MainWindow::OnMyPosition() if (m_pMyPosition->isChecked()) { m_pMyPosition->setIcon(QIcon(":/navig64/location-search.png")); + m_pMyPosition->setToolTip(tr("Looking for position...")); m_pDrawWidget->OnEnableMyPosition(boost::bind(&MainWindow::OnLocationFound, this)); } else { m_pMyPosition->setIcon(QIcon(":/navig64/location.png")); + m_pMyPosition->setToolTip(tr("My Position")); m_pDrawWidget->OnDisableMyPosition(); } }