mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-10 23:42:06 +08:00
nav: set map widget parent
This commit is contained in:
@@ -230,7 +230,7 @@ void MapWindow::resizeGL(int w, int h) {
|
||||
}
|
||||
|
||||
void MapWindow::initializeGL() {
|
||||
m_map.reset(new QMapboxGL(nullptr, m_settings, size(), 1));
|
||||
m_map.reset(new QMapboxGL(this, m_settings, size(), 1));
|
||||
|
||||
if (last_position) {
|
||||
m_map->setCoordinateZoom(*last_position, MAX_ZOOM);
|
||||
|
||||
Reference in New Issue
Block a user