┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbarmessagelabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/statusbarmessagelabel.cpp')
-rw-r--r--src/statusbarmessagelabel.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/statusbarmessagelabel.cpp b/src/statusbarmessagelabel.cpp
index 0604b2633..43ad1b77e 100644
--- a/src/statusbarmessagelabel.cpp
+++ b/src/statusbarmessagelabel.cpp
@@ -108,11 +108,10 @@ void StatusBarMessageLabel::setMinimumTextHeight(int min)
void StatusBarMessageLabel::paintEvent(QPaintEvent* /* event */)
{
- QPixmap buffer(size());
- QPainter painter(&buffer);
+ QPainter painter(this);
// draw background
- QColor backgroundColor(colorGroup().background());
+ QColor backgroundColor(palette().brush(QPalette::Background).color());
QColor foregroundColor(KGlobalSettings::textColor());
if (m_illumination > 0) {
backgroundColor = mixColors(backgroundColor, QColor(255, 255, 64), m_illumination);
@@ -135,8 +134,6 @@ void StatusBarMessageLabel::paintEvent(QPaintEvent* /* event */)
painter.setPen(foregroundColor);
painter.drawText(QRect(x, 0, width() - x, height()), Qt::AlignVCenter | Qt::TextWordWrap, m_text);
painter.end();
-
- bitBlt(this, 0, 0, &buffer);
}
void StatusBarMessageLabel::resizeEvent(QResizeEvent* event)