- connect(m_tabButtonGroup, SIGNAL(buttonPressed(int)),
- this, SLOT(setActiveTab(int)));
+ connect(m_panelTabBar, SIGNAL(currentChanged(int)),
+ this, SLOT(showTab(int)));
+
+ connect(m_panelTabBar, SIGNAL(tabCloseRequested(int)),
+ this, SLOT(closePanel()));
+
+ connect(this, SIGNAL(panelClosed()),
+ m_panelTabBar, SLOT(deselectTabs()));