MCPcopy Create free account
hub / github.com/KDE/kdevelop / drawDecoration

Method drawDecoration

plugins/quickopen/expandingtree/expandingdelegate.cpp:280–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void ExpandingDelegate::drawDecoration(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const
281{
282 const QModelIndex sourceIndex = model()->mapToSource(m_currentIndex);
283 if (model()->indexIsItem(sourceIndex)) {
284 QItemDelegate::drawDecoration(painter, option, rect, pixmap);
285 }
286}
287
288void ExpandingDelegate::drawBackground(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
289{

Callers

nothing calls this directly

Calls 3

modelFunction · 0.85
indexIsItemMethod · 0.80
mapToSourceMethod · 0.45

Tested by

no test coverage detected