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

Method paint

plugins/cmake/settings/cmakecachedelegate.cpp:128–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void CMakeCacheDelegate::paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const
129{
130 if(index.column()==2)
131 {
132 QModelIndex typeIdx=index.sibling(index.row(), 1);
133 QString type=index.model()->data(typeIdx, Qt::DisplayRole).toString();
134 if(type==QLatin1String("BOOL"))
135 return;
136 }
137 QItemDelegate::paint(painter, option, index);
138}
139
140QSize CMakeCacheDelegate::sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index ) const
141{

Callers

nothing calls this directly

Calls 7

paintFunction · 0.85
siblingMethod · 0.80
columnMethod · 0.45
rowMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45
modelMethod · 0.45

Tested by

no test coverage detected