smoothificating user requested backlog replay. increased request count to 100
[quassel.git] / src / qtui / columnhandleitem.cpp
index 8f1f9a2..cf0e5d7 100644 (file)
@@ -27,6 +27,8 @@
 #include <QPainter>
 #include <QPalette>
 
+#include <QDebug>
+
 ColumnHandleItem::ColumnHandleItem(qreal w, QGraphicsItem *parent)
   : QGraphicsItem(parent),
     _width(w),
@@ -55,8 +57,8 @@ void ColumnHandleItem::setXLimits(qreal min, qreal max) {
 }
 
 void ColumnHandleItem::sceneRectChanged(const QRectF &rect) {
-  if(rect.height() != boundingRect().height())
-    prepareGeometryChange();
+  Q_UNUSED(rect)
+  prepareGeometryChange();
 }
 
 void ColumnHandleItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event) {
@@ -119,7 +121,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);