6#include "../customstyle/customstyle.h"
9 QPainter *painter,
const QWidget *widget)
const
14 case (PE_PanelItemViewItem): {
17 QPoint topLeft = option->rect.topLeft();
18 QPoint bottomRight = option->rect.topRight();
19 QLinearGradient backgroundGradient(topLeft, bottomRight);
20 backgroundGradient.setColorAt(0.0, QColor(Qt::yellow).lighter(190));
21 backgroundGradient.setColorAt(1.0, Qt::white);
22 painter->fillRect(option->rect, QBrush(backgroundGradient));
28 QProxyStyle::drawPrimitive(element, option, painter, widget);
void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override
[2]