| 126 | } |
| 127 | |
| 128 | void 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 | |
| 140 | QSize CMakeCacheDelegate::sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index ) const |
| 141 | { |