void HandleNewTab(QAction action) { var tab = new EmptyTab(); int index = m_Tabs.CurrentIndex + 1; index = m_Tabs.InsertTab(index, tab, tab.WindowIcon, "New Tab"); m_Tabs.SetCurrentIndex(index); TabAdded(); }
void HandleNewTab(QAction action) { var tab = new EmptyTab(); int index = m_Tabs.CurrentIndex + 1; index = m_Tabs.InsertTab(index, tab, tab.WindowIcon, "New Tab"); m_Tabs.SetCurrentIndex(index); TabAdded(); }