16 QStandardItemModel
const &mainModel)
17 : QStyledItemDelegate(parent), m_view(view), m_filteredModel(filteredModel), m_mainModel(mainModel) {}
20 QStyledItemDelegate::paint(painter, option,
index);
27 auto isCurrentCell =
m_view.currentIndex() ==
index;
28 auto pen = ([isCurrentCell, &borderColor, item]() -> QPen {
29 if (isCurrentCell & item->isEditable())
30 return QPen(Qt::black);
32 return QPen(borderColor);
34 pen.setWidth(isCurrentCell ? 2 : borderThickness);
37 painter->drawRect(option.rect.adjusted(1, 1, -1, -1));
std::map< DeltaEMode::Type, std::string > index