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

Method drawBackground

plugins/quickopen/expandingtree/expandingdelegate.cpp:288–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void ExpandingDelegate::drawBackground(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
289{
290 Q_UNUSED(index)
291 QStyleOptionViewItem opt = option;
292 //initStyleOption(&opt, index);
293 //Problem: This isn't called at all, because drawBrackground is not virtual :-/
294 QStyle* style = model()->treeView()->style() ? model()->treeView()->style() : QApplication::style();
295 style->drawControl(QStyle::CE_ItemViewItem, &opt, painter);
296}
297
298ExpandingWidgetModel* ExpandingDelegate::model() const
299{

Callers

nothing calls this directly

Calls 3

modelFunction · 0.85
styleMethod · 0.80
treeViewMethod · 0.80

Tested by

no test coverage detected