Some minor cosmetic changes and removed an unnecessary constant from panelcommon.h
[situare] / src / ui / tabbedpanel.cpp
index d5deee7..44a3fd0 100644 (file)
@@ -58,15 +58,15 @@ TabbedPanel::TabbedPanel(QWidget *parent)
     connect(m_panelTabBar, SIGNAL(currentChanged(int)),
             this, SLOT(setCurrentIndex(int)));
 
+    connect(m_panelTabBar, SIGNAL(sizeChangeRequested()),
+            this, SLOT(calculateMask()));
+
     connect(m_panelTabBar, SIGNAL(tabCloseRequested(int)),
              this, SLOT(closePanel()));
 
     connect(this, SIGNAL(panelClosed()),
             m_panelTabBar, SLOT(deselectTabs()));
 
-    connect(m_panelTabBar, SIGNAL(sizeChangeRequested()),
-            this, SLOT(calculateMask()));
-
     // --- BAR ---
     m_panelBar = new PanelBar(this);
     m_panelBar->move(PANEL_TAB_WIDTH, PANEL_TOP_Y);
@@ -207,6 +207,7 @@ void TabbedPanel::repositionContextButtonBar()
     qDebug() << __PRETTY_FUNCTION__;
 
     m_panelContextButtonBar->move(PANEL_CONTEXT_BUTTON_BAR_LEFT_X, height());
+    
     calculateMask();
 }