From: Sami Rämö Date: Wed, 18 Aug 2010 10:27:56 +0000 (+0300) Subject: Changed the stacking order, still not working X-Git-Tag: v2.0b-1~50^2^2~1 X-Git-Url: https://vcs.maemo.org/git/?p=situare;a=commitdiff_plain;h=ced0afc7ce8428bae8c93af622713ccf2bf0f6f8 Changed the stacking order, still not working --- diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index dbd1e64..34e99a0 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -93,17 +93,16 @@ MainWindow::MainWindow(QWidget *parent) 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);