Fixed positioning and sizing of the ListItemContextButtonBar
[situare] / src / ui / tabbedpanel.cpp
index 52155d0..3ffc2fb 100644 (file)
@@ -262,12 +262,6 @@ void TabbedPanel::setCurrentIndex(int index)
         QWidget *itemContextButtons = static_cast<PanelBase *>(m_panelContentStack->widget(index))->itemButtons();
         m_itemContextButtonBar->setContextButtons(itemContextButtons);
 
-        const int FROM_PANEL_CONTENTS_LEFT = PANEL_WIDTH / 2 - itemContextButtons->width() / 2;
-        const int Y = 0;
-
-        m_itemContextButtonBar->move(PANEL_TAB_BAR_WIDTH + PANEL_BAR_WIDTH
-                                     + FROM_PANEL_CONTENTS_LEFT, Y);
-
         emit currentChanged(index);
     }
 }