equal
deleted
inserted
replaced
665 void QItemDelegate::drawDisplay(QPainter *painter, const QStyleOptionViewItem &option, |
665 void QItemDelegate::drawDisplay(QPainter *painter, const QStyleOptionViewItem &option, |
666 const QRect &rect, const QString &text) const |
666 const QRect &rect, const QString &text) const |
667 { |
667 { |
668 Q_D(const QItemDelegate); |
668 Q_D(const QItemDelegate); |
669 |
669 |
670 QPen pen = painter->pen(); |
|
671 QPalette::ColorGroup cg = option.state & QStyle::State_Enabled |
670 QPalette::ColorGroup cg = option.state & QStyle::State_Enabled |
672 ? QPalette::Normal : QPalette::Disabled; |
671 ? QPalette::Normal : QPalette::Disabled; |
673 if (cg == QPalette::Normal && !(option.state & QStyle::State_Active)) |
672 if (cg == QPalette::Normal && !(option.state & QStyle::State_Active)) |
674 cg = QPalette::Inactive; |
673 cg = QPalette::Inactive; |
675 if (option.state & QStyle::State_Selected) { |
674 if (option.state & QStyle::State_Selected) { |