From 38819ba9a08c94e6d6260c24f6891d7d52ff78ac Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sat, 1 Mar 2008 23:39:23 +0000 Subject: [PATCH] fix color of color clips svn path=/branches/KDE4/; revision=1970 --- src/clipitem.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clipitem.cpp b/src/clipitem.cpp index 3245d37e..4413c3fc 100644 --- a/src/clipitem.cpp +++ b/src/clipitem.cpp @@ -199,8 +199,8 @@ void ClipItem::animate(qreal value) QWidget *widget) { painter->setOpacity(m_opacity); - if (isSelected()) setBrush(QColor(150, 50, 100)); - else setBrush(QColor(100, 100, 150)); + QBrush paintColor = brush(); + if (isSelected()) paintColor = QBrush(QColor(150, 50, 100)); QRectF br = rect(); QRect rectInView;//this is the rect that is visible by the user if (scene()->views().size()>0){ @@ -244,7 +244,7 @@ void ClipItem::animate(qreal value) painter->setClipPath(roundRectPathUpper.united(roundRectPathLower).intersected(clippath), Qt::IntersectClip); //painter->fillPath(roundRectPath, brush()); //, QBrush(QColor(Qt::red))); - painter->fillRect(br.intersected(rectInView), brush()); + painter->fillRect(br.intersected(rectInView), paintColor); //painter->fillRect(QRectF(br.x() + br.width() - m_endPix.width(), br.y(), m_endPix.width(), br.height()), QBrush(QColor(Qt::black))); // draw thumbnails -- 2.39.5