buildMap();
- // build main layout
- QHBoxLayout *layout = new QHBoxLayout;
- layout->addWidget(m_mapView);
- layout->setMargin(0);
- layout->setSpacing(0);
-
- setCentralWidget(new QWidget());
- centralWidget()->setLayout(layout);
+ // map view is the only widget which size & location is handled automatically by the system
+ // default functionality
+ setCentralWidget(m_mapView);
buildPanels();
setWindowTitle(tr("Situare"));
// set stacking order of widgets (from top to bottom)
- // if fullscreen button exists, then it is the topmost one, otherwise own location crosshair is
+ // if the fullscreen button exists, then it is the topmost one, otherwise the tabbed panel is
if (m_fullScreenButton) {
- m_ownLocationCrosshair->stackUnder(m_fullScreenButton);
+ m_tabbedPanel->stackUnder(m_fullScreenButton);
}
+ m_ownLocationCrosshair->stackUnder(m_tabbedPanel);
m_zoomButtonPanel->stackUnder(m_ownLocationCrosshair);
m_indicatorButtonPanel->stackUnder(m_zoomButtonPanel);
- m_tabbedPanel->stackUnder(m_indicatorButtonPanel);
- m_osmLicense->stackUnder(m_tabbedPanel);
+ m_osmLicense->stackUnder(m_indicatorButtonPanel);
m_mapScale->stackUnder(m_osmLicense);
m_mapView->stackUnder(m_mapScale);