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

Method drawStyledBackground

plugins/projectmanagerview/projectmodelitemdelegate.cpp:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void ProjectModelItemDelegate::drawStyledBackground(QPainter* painter, const QStyleOptionViewItem& option) const
131{
132 QStyleOptionViewItem opt(option);
133 QStyle *style = opt.widget->style();
134 style->drawPrimitive(QStyle::PE_PanelItemViewItem, &option, painter, opt.widget);
135}
136
137void ProjectModelItemDelegate::drawDisplay(QPainter* painter, const QStyleOptionViewItem& option,
138 const QRect& rect, const QString& text) const

Callers

nothing calls this directly

Calls 2

styleMethod · 0.80
drawPrimitiveMethod · 0.80

Tested by

no test coverage detected