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

Method documentList

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

Source from the content-addressed store, hash-verified

102}
103
104QVariantList RecentListView::documentList() const
105{
106 QVariantList itemList;
107 for (int i = 0; i < model.rowCount(); ++i) {
108 const auto &item = model.item(i);
109 if (item->data(IsProject).toBool())
110 continue;
111
112 itemList << item->data(Qt::DisplayRole);
113 }
114
115 return itemList;
116}
117
118void RecentListView::appendItem(const QVariant &item)
119{

Callers 2

addDocumentMethod · 0.80
initConnectMethod · 0.80

Calls 3

itemMethod · 0.80
rowCountMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected