MCPcopy Create free account
hub / github.com/KDAB/GammaRay / paint

Method paint

ui/itemdelegate.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void ItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
81 const QModelIndex &index) const
82{
83 QStyleOptionViewItem opt = option;
84 opt.text = defaultDisplayText(index);
85 initStyleOption(&opt, index);
86
87 const QWidget *widget = this->widget(option);
88 QStyle *style = this->style(option);
89 style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, widget);
90}

Callers

nothing calls this directly

Calls 2

styleMethod · 0.80
widgetMethod · 0.45

Tested by

no test coverage detected