createMenus();
setWindowTitle(tr("Situare"));
- // set stacking order of widgets
- m_zoomButtonPanel->stackUnder(m_tabbedPanel);
- if(m_fullScreenButton) {
- m_fullScreenButton->stackUnder(m_zoomButtonPanel);
- m_osmLicense->stackUnder(m_fullScreenButton);
- } else {
- m_osmLicense->stackUnder(m_zoomButtonPanel);
+ // 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 (m_fullScreenButton) {
+ m_ownLocationCrosshair->stackUnder(m_fullScreenButton);
}
- m_ownLocationCrosshair->stackUnder(m_osmLicense);
- m_indicatorButtonPanel->stackUnder(m_ownLocationCrosshair);
- m_mapScale->stackUnder(m_indicatorButtonPanel);
+ m_zoomButtonPanel->stackUnder(m_ownLocationCrosshair);
+ m_indicatorButtonPanel->stackUnder(m_zoomButtonPanel);
+ m_tabbedPanel->stackUnder(m_indicatorButtonPanel);
+ m_osmLicense->stackUnder(m_tabbedPanel);
+ m_mapScale->stackUnder(m_osmLicense);
m_mapView->stackUnder(m_mapScale);
grabZoomKeys(true);