-----------------------------------------------------------------------------
| 463 | |
| 464 | //----------------------------------------------------------------------------- |
| 465 | int pqPythonTabWidget::fileIsOpened(const QString& fileName) const |
| 466 | { |
| 467 | const QFileInfo fileInfo(fileName); |
| 468 | for (int i = 0; i < this->count() - 1; ++i) |
| 469 | { |
| 470 | pqPythonTextArea* widget = this->getWidget<pqPythonTextArea>(i); |
| 471 | if (widget && QFileInfo(widget->getFilename()) == fileInfo) |
| 472 | { |
| 473 | return i; |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | return -1; |
| 478 | } |
no test coverage detected