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);
}
}