diff options
| author | Peter Penz <[email protected]> | 2007-06-19 16:49:31 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-06-19 16:49:31 +0000 |
| commit | 2e6dc566dd2f2027203df72302aa75110a31c4ae (patch) | |
| tree | 7d896f7821ee4879766748d61508c45ff1a82859 /src/statusbarmessagelabel.cpp | |
| parent | 5926d0fddd94d25a5546eee82a6dd8f072196b83 (diff) | |
don't use deprecated KGlobalSettings::xxxColor() methods anymore
svn path=/trunk/KDE/kdebase/apps/; revision=677660
Diffstat (limited to 'src/statusbarmessagelabel.cpp')
| -rw-r--r-- | src/statusbarmessagelabel.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/statusbarmessagelabel.cpp b/src/statusbarmessagelabel.cpp index 759ceed6d..49d3b2750 100644 --- a/src/statusbarmessagelabel.cpp +++ b/src/statusbarmessagelabel.cpp @@ -20,18 +20,18 @@ #include "statusbarmessagelabel.h" -#include <kglobalsettings.h> +#include <kcolorscheme.h> #include <kcolorutils.h> #include <kiconloader.h> #include <kicon.h> #include <klocale.h> -#include <QtGui/QFontMetrics> -#include <QtGui/QPainter> -#include <QtGui/QKeyEvent> -#include <QtGui/QPushButton> -#include <QtGui/QPixmap> -#include <QtCore/QTimer> +#include <QFontMetrics> +#include <QPainter> +#include <QKeyEvent> +#include <QPushButton> +#include <QPixmap> +#include <QTimer> StatusBarMessageLabel::StatusBarMessageLabel(QWidget* parent) : QWidget(parent), @@ -139,8 +139,8 @@ void StatusBarMessageLabel::paintEvent(QPaintEvent* /* event */) QPainter painter(this); // draw background - QColor backgroundColor(palette().brush(QPalette::Background).color()); - QColor foregroundColor(KGlobalSettings::textColor()); + QColor backgroundColor = palette().brush(QPalette::Background).color(); + QColor foregroundColor = KColorScheme(KColorScheme::View).foreground(); if (m_illumination > 0) { // TODO: are there foreground and background colors available for // "error messages"? |
