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

Method resizeGL

qt/qt_common/map_widget.cpp:452–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void MapWidget::resizeGL(int width, int height)
453{
454 int const w = m_screenshotMode ? width : m_ratio * width;
455 int const h = m_screenshotMode ? height : m_ratio * height;
456 m_framework.OnSize(w, h);
457
458 if (m_skin)
459 {
460 m_skin->Resize(w, h);
461
462 gui::TWidgetsLayoutInfo layout;
463 m_skin->ForEach([&layout](gui::EWidget w, gui::Position const & pos) { layout[w] = pos.m_pixelPivot; });
464
465 m_framework.SetWidgetLayout(std::move(layout));
466 }
467}
468
469void MapWidget::mouseDoubleClickEvent(QMouseEvent * e)
470{

Callers

nothing calls this directly

Calls 4

OnSizeMethod · 0.45
ResizeMethod · 0.45
ForEachMethod · 0.45
SetWidgetLayoutMethod · 0.45

Tested by

no test coverage detected