forked from organicmaps/organicmaps
[qt] Added icons for My Position
This commit is contained in:
parent
4379575f9b
commit
a2139bfbfc
4 changed files with 26 additions and 24 deletions
|
@ -233,7 +233,7 @@ void MainWindow::CreateNavigationBar()
|
|||
|
||||
{
|
||||
// add my position button with "checked" behavior
|
||||
m_pMyPosition = pBar->addAction(QIcon(":/navig64/plus.png"),
|
||||
m_pMyPosition = pBar->addAction(QIcon(":/navig64/location.png"),
|
||||
tr("My Position"),
|
||||
this,
|
||||
SLOT(OnMyPosition()));
|
||||
|
@ -342,19 +342,19 @@ void MainWindow::OnPreferences()
|
|||
|
||||
void MainWindow::OnLocationFound()
|
||||
{
|
||||
// @TODO change button icon to "found location"
|
||||
m_pMyPosition->setIcon(QIcon(":/navig64/location.png"));
|
||||
}
|
||||
|
||||
void MainWindow::OnMyPosition()
|
||||
{
|
||||
if (m_pMyPosition->isChecked())
|
||||
{
|
||||
// @TODO change button icon to "searching location"
|
||||
m_pMyPosition->setIcon(QIcon(":/navig64/location-search.png"));
|
||||
m_pDrawWidget->OnEnableMyPosition(boost::bind(&MainWindow::OnLocationFound, this));
|
||||
}
|
||||
else
|
||||
{
|
||||
// @TODO change
|
||||
m_pMyPosition->setIcon(QIcon(":/navig64/location.png"));
|
||||
m_pDrawWidget->OnDisableMyPosition();
|
||||
}
|
||||
}
|
||||
|
|
BIN
qt/res/location-search.png
Normal file
BIN
qt/res/location-search.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 615 B |
BIN
qt/res/location.png
Normal file
BIN
qt/res/location.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 491 B |
|
@ -1,21 +1,23 @@
|
|||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource prefix="/classif32">
|
||||
<file>save.png</file>
|
||||
<file>load.png</file>
|
||||
<file>select.png</file>
|
||||
<file>clear.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/navig64">
|
||||
<file>up.png</file>
|
||||
<file>down.png</file>
|
||||
<file>left.png</file>
|
||||
<file>right.png</file>
|
||||
<file>world.png</file>
|
||||
<file>download.png</file>
|
||||
<file>plus.png</file>
|
||||
<file>minus.png</file>
|
||||
</qresource>
|
||||
<qresource>
|
||||
<file>logo.png</file>
|
||||
</qresource>
|
||||
<RCC>
|
||||
<qresource prefix="/classif32">
|
||||
<file>save.png</file>
|
||||
<file>load.png</file>
|
||||
<file>select.png</file>
|
||||
<file>clear.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/navig64">
|
||||
<file>up.png</file>
|
||||
<file>down.png</file>
|
||||
<file>left.png</file>
|
||||
<file>right.png</file>
|
||||
<file>world.png</file>
|
||||
<file>download.png</file>
|
||||
<file>plus.png</file>
|
||||
<file>minus.png</file>
|
||||
<file>location-search.png</file>
|
||||
<file>location.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/">
|
||||
<file>logo.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Add table
Reference in a new issue