diff --git a/libapper/CategoryDrawer.cpp b/libapper/CategoryDrawer.cpp --- a/libapper/CategoryDrawer.cpp +++ b/libapper/CategoryDrawer.cpp @@ -49,35 +49,6 @@ const QFontMetrics fontMetrics = QFontMetrics(font); const int height = categoryHeight(index, option); - //BEGIN: decoration gradient - { - QPainterPath path(optRect.bottomLeft()); - path.lineTo(QPoint(optRect.topLeft().x(), optRect.topLeft().y() - 3)); - const QPointF topLeft(optRect.topLeft()); - QRectF arc(topLeft, QSizeF(4, 4)); - path.arcTo(arc, 180, -90); - path.lineTo(optRect.topRight()); - path.lineTo(optRect.bottomRight()); - path.lineTo(optRect.bottomLeft()); - - QColor window(option.palette.window().color()); - const QColor base(option.palette.base().color()); - - window.setAlphaF(0.4); - - QLinearGradient decoGradient1(optRect.topLeft(), optRect.bottomLeft()); - decoGradient1.setColorAt(0, window); - decoGradient1.setColorAt(1, Qt::transparent); - - QLinearGradient decoGradient2(optRect.topLeft(), optRect.topRight()); - decoGradient2.setColorAt(0, Qt::transparent); - decoGradient2.setColorAt(1, base); - - painter->fillPath(path, decoGradient1); - painter->fillPath(path, decoGradient2); - } - //END: decoration gradient - { QRect newOptRect(optRect); newOptRect.setLeft(newOptRect.left() + 1);