Cleanups from KGraphicsUtils->KColorUtils (r671350)

svn path=/trunk/KDE/kdebase/apps/; revision=671357
This commit is contained in:
Matthew Woehlke 2007-06-04 15:15:40 +00:00
parent 4c30102662
commit a91482a1d2

View file

@ -21,7 +21,7 @@
#include "statusbarmessagelabel.h"
#include <kglobalsettings.h>
#include <kgraphicsutils.h>
#include <kcolorutils.h>
#include <kiconloader.h>
#include <kicon.h>
#include <klocale.h>
@ -139,10 +139,10 @@ void StatusBarMessageLabel::paintEvent(QPaintEvent* /* event */)
QColor foregroundColor(KGlobalSettings::textColor());
if (m_illumination > 0) {
QColor mixColor(255, 255, 128, m_illumination);
backgroundColor = KGraphicsUtils::blendColor(backgroundColor, mixColor);
backgroundColor = KColorUtils::overlayColors(backgroundColor, mixColor);
mixColor.setRgb(0, 0, 0, m_illumination);
foregroundColor = KGraphicsUtils::blendColor(foregroundColor, mixColor);
foregroundColor = KColorUtils::overlayColors(foregroundColor, mixColor);
}
painter.setBrush(backgroundColor);
painter.setPen(backgroundColor);