| 450 | } |
| 451 | |
| 452 | void 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 | |
| 469 | void MapWidget::mouseDoubleClickEvent(QMouseEvent * e) |
| 470 | { |
nothing calls this directly
no test coverage detected