MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / openFileDialog

Method openFileDialog

src/plugins/core/uicontroller/controller.cpp:863–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863void Controller::openFileDialog()
864{
865 QString dir = QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
866 QString filePath = DFileDialog::getOpenFileName(nullptr, tr("Open Document"), dir);
867 if (filePath.isEmpty() && !QFileInfo(filePath).exists())
868 return;
869 recent.saveOpenedFile(filePath);
870 editor.openFile(QString(), filePath);
871}
872
873void Controller::loading()
874{

Callers

nothing calls this directly

Calls 4

QStringClass · 0.50
isEmptyMethod · 0.45
existsMethod · 0.45
openFileMethod · 0.45

Tested by

no test coverage detected