]> cloud.milkyroute.net Git - dolphin.git/commitdiff
pass alpha value in ctor
authorPeter Penz <peter.penz19@gmail.com>
Thu, 31 May 2007 20:58:39 +0000 (20:58 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 31 May 2007 20:58:39 +0000 (20:58 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=670248

src/statusbarmessagelabel.cpp

index 32d57e09b283aab5fa4215af3b15081b4ca5b667..239f6a70cf23d5dd6ad9086885e7165a0fcf6f2c 100644 (file)
@@ -138,8 +138,7 @@ void StatusBarMessageLabel::paintEvent(QPaintEvent* /* event */)
     QColor backgroundColor(palette().brush(QPalette::Background).color());
     QColor foregroundColor(KGlobalSettings::textColor());
     if (m_illumination > 0) {
-        QColor mixColor(255, 255, 128);
-        mixColor.setAlpha(m_illumination);
+        QColor mixColor(255, 255, 128, m_illumination);
         backgroundColor = KGraphicsUtils::blendColor(backgroundColor, mixColor);
 
         mixColor.setRgb(0, 0, 0, m_illumination);