-void ColumnHandleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
- Q_UNUSED(option);
- Q_UNUSED(widget);
-
- QLinearGradient gradient(boundingRect().topLeft(), boundingRect().topRight());
- QColor color = QApplication::palette().windowText().color();
- color.setAlphaF(_opacity);
- gradient.setColorAt(0, Qt::transparent);
- gradient.setColorAt(0.45, color);
- gradient.setColorAt(0.55, color);
- gradient.setColorAt(1, Qt::transparent);
- painter->fillRect(boundingRect(), gradient);
+
+void ColumnHandleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
+{
+ Q_UNUSED(option);
+ Q_UNUSED(widget);
+
+ QLinearGradient gradient(boundingRect().topLeft(), boundingRect().topRight());
+ QColor color = QApplication::palette().windowText().color();
+ color.setAlphaF(_opacity);
+ gradient.setColorAt(0, Qt::transparent);
+ gradient.setColorAt(0.45, color);
+ gradient.setColorAt(0.55, color);
+ gradient.setColorAt(1, Qt::transparent);
+ painter->fillRect(boundingRect(), gradient);