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

Function freecadCanOpen

src/Mod/Start/App/DisplayedFilesModel.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static bool freecadCanOpen(const QString& extension)
55{
56 std::string ext = extension.toStdString();
57 auto importTypes = App::GetApplication().getImportTypes();
58 return std::ranges::find_if(
59 importTypes,
60 [&ext](const auto& item) { return boost::iequals(item, ext); }
61 )
62 != importTypes.end();
63}
64
65DisplayedFilesModel::DisplayedFilesModel(QObject* parent)
66 : QAbstractListModel(parent)

Callers 1

addFileMethod · 0.85

Calls 3

toStdStringMethod · 0.80
getImportTypesMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected