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

Method addSessionList

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

Source from the content-addressed store, hash-verified

466}
467
468void SessionItemListWidget::addSessionList(const QStringList &sessionList)
469{
470 for (const auto &session : sessionList) {
471 auto item = new SessionItemWidget(this);
472 item->setSessionName(session);
473 this->sessionList.append(item);
474 mainLayout->addWidget(item);
475 }
476 updateSessions();
477}
478
479void SessionItemListWidget::removeSession(const QString &session)
480{

Callers 2

addSessionMethod · 0.80
initDataMethod · 0.80

Calls 3

setSessionNameMethod · 0.45
appendMethod · 0.45
addWidgetMethod · 0.45

Tested by

no test coverage detected