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

Method updateSessions

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

Source from the content-addressed store, hash-verified

491}
492
493void SessionItemListWidget::updateSessions()
494{
495 for (int i = 0; i < sessionList.size(); ++i) {
496 auto item = sessionList[i];
497 item->updateSession();
498 item->setFixedWidth(width());
499 if (i % 2 == 0) {
500 item->setBackgroundRole(DPalette::ItemBackground);
501 } else {
502 item->setBackgroundRole(QPalette::Base);
503 }
504 }
505}
506
507void SessionItemListWidget::resizeEvent(QResizeEvent *e)
508{

Callers 1

Calls 2

updateSessionMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected