MCPcopy Create free account
hub / github.com/Kitware/ParaView / addNewTabWidget

Method addNewTabWidget

Qt/Python/pqPythonTabWidget.cxx:302–316  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

300
301//-----------------------------------------------------------------------------
302void pqPythonTabWidget::addNewTabWidget()
303{
304 QWidget* newTabWidget = new QWidget(this);
305 this->addTab(newTabWidget, "+");
306
307 // New tab widget is always the last one
308 this->connect(this, &QTabWidget::tabBarClicked,
309 [this](int index)
310 {
311 if (index == this->count() - 1)
312 {
313 this->createNewEmptyTab();
314 }
315 });
316}
317
318//-----------------------------------------------------------------------------
319bool pqPythonTabWidget::saveOnClose()

Callers 1

pqPythonTabWidgetMethod · 0.95

Calls 4

createNewEmptyTabMethod · 0.95
addTabMethod · 0.80
connectMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected