From f956b52e0e49d2ec368c7b48dbbe4fca4feca439 Mon Sep 17 00:00:00 2001
From: Jens Bache-Wiig <jbache@trolltech.com>
Date: Wed, 24 Mar 2010 13:20:04 +0100
Subject: [PATCH] Fix warning on progressbar animation

---
 src/plugins/coreplugin/progressmanager/progressbar.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/plugins/coreplugin/progressmanager/progressbar.cpp b/src/plugins/coreplugin/progressmanager/progressbar.cpp
index 6bfb8294d19..8c2dfa26f67 100644
--- a/src/plugins/coreplugin/progressmanager/progressbar.cpp
+++ b/src/plugins/coreplugin/progressmanager/progressbar.cpp
@@ -68,7 +68,7 @@ bool ProgressBar::event(QEvent *e)
         break;
     case QEvent::Leave:
         {
-            QPropertyAnimation *animation = new QPropertyAnimation(this, "m_cancelButtonFader");
+            QPropertyAnimation *animation = new QPropertyAnimation(this, "cancelButtonFader");
             animation->setDuration(225);
             animation->setEndValue(0.0);
             animation->start(QAbstractAnimation::DeleteWhenStopped);
@@ -287,7 +287,5 @@ void ProgressBar::paintEvent(QPaintEvent *)
         p.translate(0.5, 0.5);
         p.drawLine(cancelRect.center()+QPoint(-1,-2), cancelRect.center()+QPoint(+3,+2));
         p.drawLine(cancelRect.center()+QPoint(+3,-2), cancelRect.center()+QPoint(-1,+2));
-        p.setPen(QPen(QColor(0, 0, 0, 80)));
-        p.drawLine(cancelRect.bottomLeft() + QPoint(2,-1), cancelRect.bottomRight() + QPoint(0,-1));
     }
 }
-- 
GitLab