MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / onInsertFileName

Method onInsertFileName

src/Gui/PythonConsole.cpp:1434–1445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1432}
1433
1434void 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.

Callers

nothing calls this directly

Calls 3

getMainWindowFunction · 0.70
QStringClass · 0.70
isEmptyMethod · 0.45

Tested by

no test coverage detected