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

Method initializeGL

qt/draw_widget.cpp:187–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void DrawWidget::initializeGL()
188{
189 if (m_screenshotMode)
190 m_framework.GetBookmarkManager().EnableTestMode(true);
191 else
192 m_framework.LoadBookmarks();
193
194 MapWidget::initializeGL();
195
196 m_framework.GetRoutingManager().LoadRoutePoints([this](bool success)
197 {
198 if (success)
199 m_framework.GetRoutingManager().BuildRoute();
200 });
201
202 if (m_screenshotMode)
203 m_screenshoter->Start();
204}
205
206bool DrawWidget::event(QEvent * event)
207{

Callers

nothing calls this directly

Calls 5

EnableTestModeMethod · 0.80
LoadRoutePointsMethod · 0.80
LoadBookmarksMethod · 0.45
BuildRouteMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected