diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index d3684b2ebb..02e31905b2 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -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); diff --git a/qt/mainwindow.hpp b/qt/mainwindow.hpp index e3073e9e95..6ea00a5178 100644 --- a/qt/mainwindow.hpp +++ b/qt/mainwindow.hpp @@ -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, };