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

Method appendFile

src/Gui/Action.cpp:926–942  ·  view source on GitHub ↗

Adds the new item to the recent files. */

Source from the content-addressed store, hash-verified

924
925/** Adds the new item to the recent files. */
926void RecentFilesAction::appendFile(const QString& filename)
927{
928 // restore the list of recent files
929 QStringList files = this->files();
930
931 // if already inside remove and prepend it
932 files.removeAll(filename);
933 files.prepend(filename);
934 setFiles(files);
935 save();
936
937 _pimpl->trySaveUserParameter();
938
939 clearRecentFilesListAction.setEnabled(true);
940
941 Q_EMIT recentFilesListModified();
942}
943
944static QString numberToLabel(int number)
945{

Callers 2

appendRecentFileMethod · 0.80
appendRecentMacroMethod · 0.80

Calls 12

filesMethod · 0.95
trySaveUserParameterMethod · 0.80
GetBoolMethod · 0.80
GetParameterSetMethod · 0.80
SaveDocumentMethod · 0.80
saveFunction · 0.50
ConfigClass · 0.50
removeAllMethod · 0.45
prependMethod · 0.45
setEnabledMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected