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

Method clearProjects

src/plugins/recent/mainframe/recentlistview.cpp:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void RecentListView::clearProjects()
68{
69 for (int i = model.rowCount() - 1; i >= 0; --i) {
70 const auto &item = model.item(i);
71 if (item->data(IsProject).toBool())
72 model.removeRow(i);
73 }
74}
75
76void RecentListView::clearDocuments()
77{

Callers 1

addProjectMethod · 0.80

Calls 3

itemMethod · 0.80
rowCountMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected