From d9e98f343c0edbf1b2048f92263a00e1ee94772c Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Fri, 5 Jun 2009 14:05:24 +0200 Subject: [PATCH] Fixes: Fix red color on error for progressbars --- src/plugins/coreplugin/progressmanager/progresspie.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/coreplugin/progressmanager/progresspie.cpp b/src/plugins/coreplugin/progressmanager/progresspie.cpp index 744ba598650..239b093a76b 100644 --- a/src/plugins/coreplugin/progressmanager/progresspie.cpp +++ b/src/plugins/coreplugin/progressmanager/progresspie.cpp @@ -149,9 +149,8 @@ void ProgressBar::paintEvent(QPaintEvent *) QRect inner = rect.adjusted(2, 2, -1, -1); inner.adjust(0, 0, qRound((percent - 1) * inner.width()), 0); if (m_error) { - // TODO this is not fancy enough - QColor red(255, 0, 0, 180); - p.setBrush(red); + QColor red(255, 60, 0, 210); + c = red; // avoid too small red bar if (inner.width() < 10) inner.adjust(0, 0, 10 - inner.width(), 0);