Sanitize the handling of ColumnHandleItems
[quassel.git] / src / qtui / columnhandleitem.cpp
index 8f1f9a2..7a93c4f 100644 (file)
@@ -119,7 +119,7 @@ void ColumnHandleItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *
   Q_UNUSED(option);
   Q_UNUSED(widget);
 
-  QLinearGradient gradient(0, 0, width(), 0);
+  QLinearGradient gradient(boundingRect().topLeft(), boundingRect().topRight());
   QColor rulerColor = QApplication::palette().windowText().color();
   rulerColor.setAlphaF(_hover);
   gradient.setColorAt(0, Qt::transparent);