| 1432 | } |
| 1433 | |
| 1434 | void PythonConsole::onInsertFileName() |
| 1435 | { |
| 1436 | QString fn = Gui::FileDialog::getOpenFileName( |
| 1437 | Gui::getMainWindow(), |
| 1438 | tr("Insert file name"), |
| 1439 | QString(), |
| 1440 | FileDialog::FilterList {FileDialog::Filter::AllFiles()} |
| 1441 | ); |
| 1442 | if (!fn.isEmpty()) { |
| 1443 | insertPlainText(fn); |
| 1444 | } |
| 1445 | } |
| 1446 | |
| 1447 | /** |
| 1448 | * Copy the history of the console into the clipboard. |
nothing calls this directly
no test coverage detected