| 278 | } |
| 279 | |
| 280 | void ExpandingDelegate::drawDecoration(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const |
| 281 | { |
| 282 | const QModelIndex sourceIndex = model()->mapToSource(m_currentIndex); |
| 283 | if (model()->indexIsItem(sourceIndex)) { |
| 284 | QItemDelegate::drawDecoration(painter, option, rect, pixmap); |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | void ExpandingDelegate::drawBackground(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const |
| 289 | { |
nothing calls this directly
no test coverage detected