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

Method PrepareShutdown

qt/draw_widget.cpp:153–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void DrawWidget::PrepareShutdown()
154{
155 auto & routingManager = m_framework.GetRoutingManager();
156 if (routingManager.IsRoutingActive() && routingManager.IsRoutingFollowing())
157 {
158 routingManager.SaveRoutePoints();
159
160 auto style = m_framework.GetMapStyle();
161 m_framework.MarkMapStyle(MapStyleIsDark(style) ? MapStyle::MapStyleDefaultDark : MapStyle::MapStyleDefaultLight);
162 }
163}
164
165void DrawWidget::UpdateAfterSettingsChanged()
166{

Callers 1

closeEventMethod · 0.80

Calls 6

MapStyleIsDarkFunction · 0.85
IsRoutingActiveMethod · 0.80
IsRoutingFollowingMethod · 0.80
SaveRoutePointsMethod · 0.80
GetMapStyleMethod · 0.45
MarkMapStyleMethod · 0.45

Tested by

no test coverage detected