16 #include <QVBoxLayout>
21 TabbedWidget::TabbedWidget(QWidget* parent, QString objectName, QString windowTitle) :
23 mTabWidget(new QTabWidget(this))
27 mLayout =
new QVBoxLayout(
this);
31 connect(
mTabWidget, SIGNAL(currentChanged(
int)),
this, SLOT(tabChanged(
const int &)));
39 int index =
mTabWidget->addTab(newTab, newTabName);
40 mTabWidget->setTabToolTip(index, newTab->toolTip());
41 mTabWidget->setTabWhatsThis(index, newTab->whatsThis());
46 mLayout->insertWidget(0, newWidget);
49 void TabbedWidget::tabChanged(
const int &index)