MCPcopy Create free account
hub / github.com/comaps/comaps / LocationStateModeChanged

Method LocationStateModeChanged

qt/mainwindow.cpp:243–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241#endif
242
243void MainWindow::LocationStateModeChanged(location::EMyPositionMode mode)
244{
245 if (mode == location::PendingPosition)
246 {
247 m_locationService->Start();
248 m_pMyPositionAction->setIcon(QIcon(":/navig64/location-search.png"));
249 m_pMyPositionAction->setToolTip(tr("Looking for position..."));
250 return;
251 }
252
253 m_pMyPositionAction->setIcon(QIcon(":/navig64/location.png"));
254 m_pMyPositionAction->setToolTip(tr("My Position"));
255}
256
257void MainWindow::CreateNavigationBar()
258{

Callers

nothing calls this directly

Calls 2

setIconMethod · 0.80
StartMethod · 0.45

Tested by

no test coverage detected