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

Method createProjectInfo

src/plugins/recent/mainframe/sessionitemwidget.cpp:266–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266QString SessionItemWidgetPrivate::createProjectInfo(const QVariantList &projects)
267{
268 static QString formt("<div style=\"font-size: 14px; font-weight: 500;\">%1</div>"
269 "<div style=\"font-size: 12px; font-weight: 400;\">%2</div>");
270 QString msg;
271 for (const auto &p : projects) {
272 const auto &map = p.toMap();
273 QFileInfo info(map.value("Workspace").toString());
274 msg += formt.arg(info.fileName(), info.absoluteFilePath());
275 }
276
277 return msg;
278}
279
280void SessionItemWidgetPrivate::removeSession()
281{

Callers 1

updateSessionMethod · 0.45

Calls 3

fileNameMethod · 0.80
toStringMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected