]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbarmessagelabel.cpp
pass alpha value in ctor
[dolphin.git] / 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);