| 491 | } |
| 492 | |
| 493 | void 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 | |
| 507 | void SessionItemListWidget::resizeEvent(QResizeEvent *e) |
| 508 | { |
no test coverage detected