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

Method paint

plugins/problemreporter/problemtreeview.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void ProblemTreeViewItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option,
83 const QModelIndex& index) const
84{
85 QStyleOptionViewItem newOption(option);
86 newOption.textElideMode = index.column() == ProblemModel::File ? Qt::ElideMiddle : Qt::ElideRight;
87
88 QItemDelegate::paint(painter, newOption, index);
89}
90
91ProblemTreeView::ProblemTreeView(QWidget* parent, QAbstractItemModel* itemModel)
92 : QTreeView(parent)

Callers 1

paintInlineNoteMethod · 0.45

Calls 2

paintFunction · 0.85
columnMethod · 0.45

Tested by

no test coverage detected