| 572 | } |
| 573 | |
| 574 | void WizStyleHelper::drawListViewItemBackground(QPainter* p, const QRect& rc, bool bFocus, bool bSelect) |
| 575 | { |
| 576 | int borderMargin = WizIsHighPixel() ? 3 : 2; |
| 577 | QRect rcBg = rc.adjusted(1, 1, -14, -borderMargin); |
| 578 | if (bSelect) { |
| 579 | if (bFocus) { |
| 580 | // p->fillRect(rcBg, listViewItemBackground(Active)); |
| 581 | drawSelectBorder(p, rcBg, QColor("#3177EE"), 2); |
| 582 | } else |
| 583 | { |
| 584 | // p->fillRect(rcBg, listViewItemBackground(Normal)); |
| 585 | drawSelectBorder(p, rcBg, QColor("#9BC0FF"), 2); |
| 586 | } |
| 587 | } |
| 588 | } |
| 589 | |
| 590 | |
| 591 | void WizStyleHelper::drawListViewItemBackground(QPainter* p, const QRect& rc, WizStyleHelper::ListViewBGType bgType, QColor color) |
nothing calls this directly
no test coverage detected