MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / drawListViewItemBackground

Method drawListViewItemBackground

src/utils/WizStyleHelper.cpp:574–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574void 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
591void WizStyleHelper::drawListViewItemBackground(QPainter* p, const QRect& rc, WizStyleHelper::ListViewBGType bgType, QColor color)

Callers

nothing calls this directly

Calls 3

WizIsHighPixelFunction · 0.85
drawSelectBorderFunction · 0.85
QColorClass · 0.70

Tested by

no test coverage detected