forked from organicmaps/organicmaps
[qt] Remove defunct Traffic layer button
Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
This commit is contained in:
parent
87526aad54
commit
df2541e1bf
2 changed files with 12 additions and 10 deletions
|
@ -282,9 +282,10 @@ void MainWindow::CreateNavigationBar()
|
|||
|
||||
m_layers = new PopupMenuHolder(this);
|
||||
|
||||
m_layers->addAction(QIcon(":/navig64/traffic.png"), tr("Traffic"),
|
||||
std::bind(&MainWindow::OnLayerEnabled, this, LayerType::TRAFFIC), true);
|
||||
m_layers->setChecked(LayerType::TRAFFIC, m_pDrawWidget->GetFramework().LoadTrafficEnabled());
|
||||
/// @todo Uncomment when we will integrate a traffic provider.
|
||||
// m_layers->addAction(QIcon(":/navig64/traffic.png"), tr("Traffic"),
|
||||
// std::bind(&MainWindow::OnLayerEnabled, this, LayerType::TRAFFIC), true);
|
||||
// m_layers->setChecked(LayerType::TRAFFIC, m_pDrawWidget->GetFramework().LoadTrafficEnabled());
|
||||
|
||||
m_layers->addAction(QIcon(":/navig64/subway.png"), tr("Public transport"),
|
||||
std::bind(&MainWindow::OnLayerEnabled, this, LayerType::TRANSIT), true);
|
||||
|
@ -875,11 +876,11 @@ void MainWindow::SetLayerEnabled(LayerType type, bool enable)
|
|||
auto & frm = m_pDrawWidget->GetFramework();
|
||||
switch (type)
|
||||
{
|
||||
case LayerType::TRAFFIC:
|
||||
/// @todo Uncomment when we will integrate a traffic provider.
|
||||
// frm.GetTrafficManager().SetEnabled(enable);
|
||||
// frm.SaveTrafficEnabled(enable);
|
||||
break;
|
||||
// @todo Uncomment when we will integrate a traffic provider.
|
||||
// case LayerType::TRAFFIC:
|
||||
// frm.GetTrafficManager().SetEnabled(enable);
|
||||
// frm.SaveTrafficEnabled(enable);
|
||||
// break;
|
||||
case LayerType::TRANSIT:
|
||||
frm.GetTransitManager().EnableTransitSchemeMode(enable);
|
||||
frm.SaveTransitSchemeEnabled(enable);
|
||||
|
|
|
@ -50,8 +50,9 @@ class MainWindow : public QMainWindow, location::LocationObserver
|
|||
|
||||
enum LayerType : uint8_t
|
||||
{
|
||||
TRAFFIC = 0,
|
||||
TRANSIT, // Metro scheme
|
||||
/// @todo Uncomment when we will integrate a traffic provider.
|
||||
// TRAFFIC = 0,
|
||||
TRANSIT = 0, // Metro scheme
|
||||
ISOLINES,
|
||||
OUTDOORS,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue