-----------------------------------------------------------------------------
| 300 | |
| 301 | //----------------------------------------------------------------------------- |
| 302 | void 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 | //----------------------------------------------------------------------------- |
| 319 | bool pqPythonTabWidget::saveOnClose() |
no test coverage detected