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

Method TryTrafficSimplifiedColorsCmd

qt/search_panel.cpp:195–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195bool SearchPanel::TryTrafficSimplifiedColorsCmd(std::string const & str)
196{
197 bool const simplifiedMode = (str == "?tc:simp");
198 bool const normalMode = (str == "?tc:norm");
199
200 if (!simplifiedMode && !normalMode)
201 return false;
202
203 bool const isSimplified = simplifiedMode;
204 GetFramework().GetTrafficManager().SetSimplifiedColorScheme(isSimplified);
205 GetFramework().SaveTrafficSimplifiedColors(isSimplified);
206
207 return true;
208}
209
210std::string SearchPanel::GetCurrentInputLocale()
211{

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected