MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / paintEvent

Method paintEvent

src/interface/CListView.cpp:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "CListView.h"
2
3void CListView::paintEvent(QPaintEvent *e) {
4 QListView::paintEvent(e);
5
6 if (!emptyViewEnabled || (model() && model()->rowCount(rootIndex()) > 0))
7 {
8 return;
9 }
10
11 QPainter p(this->viewport());
12 p.setPen(this->palette().placeholderText().color());
13 p.drawText(rect(), Qt::AlignCenter, emptyViewTitle);
14}
15
16bool CListView::getEmptyViewEnabled() const
17{

Callers

nothing calls this directly

Calls 5

rectFunction · 0.85
setPenMethod · 0.80
drawTextMethod · 0.80
rowCountMethod · 0.45
colorMethod · 0.45

Tested by

no test coverage detected