Changed the stacking order, still not working
authorSami Rämö <sami.ramo@ixonos.com>
Wed, 18 Aug 2010 10:27:56 +0000 (13:27 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Wed, 18 Aug 2010 10:27:56 +0000 (13:27 +0300)
src/ui/mainwindow.cpp

index dbd1e64..34e99a0 100644 (file)
@@ -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);