37 #include <QVBoxLayout> 42 TabbedWidget::TabbedWidget(QWidget* parent, QString objectName, QString windowTitle) :
44 mTabWidget(new QTabWidget(this))
48 mLayout =
new QVBoxLayout(
this);
52 connect(
mTabWidget, SIGNAL(currentChanged(
int)),
this, SLOT(tabChanged(
const int &)));
60 int index =
mTabWidget->addTab(newTab, newTabName);
61 mTabWidget->setTabToolTip(index, newTab->toolTip());
62 mTabWidget->setTabWhatsThis(index, newTab->whatsThis());
67 mLayout->insertWidget(0, newWidget);
70 void TabbedWidget::tabChanged(
const int &index)
Namespace for all CustusX production code.