- if (m_scrollOrientation == Qt::Horizontal) {
- painter->setPen(m_lineColor);
- const qreal x = m_roleBounds.x() - m_styleOption.padding;
- painter->drawLine(x, 0, x, size().height() - 1);
-
- } else if (m_itemIndex > 0) {
- painter->setPen(m_lineColor);
- const qreal y = m_roleBounds.y() - m_styleOption.padding;
- painter->drawLine(0, y, size().width() - 1, y);
- }
-}
-
-QRectF KItemListGroupHeader::roleBounds() const
-{
- return m_roleBounds;
-}
-
-QColor KItemListGroupHeader::roleColor() const
-{
- return m_roleColor;
+ paintSeparator(painter, m_separatorColor);
+ paintRole(painter, m_roleBounds, m_roleColor);