-----------------------------------------------------------------------------
| 77 | |
| 78 | //----------------------------------------------------------------------------- |
| 79 | void pqPythonScriptEditor::runCurrentTab() |
| 80 | { |
| 81 | if (!this->TabWidget->getCurrentTextArea()->isEmpty()) |
| 82 | { |
| 83 | const QString& code{ this->TabWidget->getCurrentTextArea()->getTextEdit()->toPlainText() }; |
| 84 | this->PythonManager->executeCode(code.toUtf8()); |
| 85 | pqApplicationCore::instance()->render(); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | //----------------------------------------------------------------------------- |
| 90 | bool pqPythonScriptEditor::eventFilter(QObject* watched, QEvent* event) |
nothing calls this directly
no test coverage detected