┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-11-30 18:23:05 +0000
committerPeter Penz <[email protected]>2008-11-30 18:23:05 +0000
commit971d65338f90f8baa020bb161da4e1fa0e5b0883 (patch)
tree88a1e60ccf1d60a6928ce7d4b95e61edb8497dbc
parent8dc7983f8a56ea1e27e506ad3bd8ad1c6ed2688b (diff)
use the defined tooltip text color
BUG: 170753 svn path=/trunk/KDE/kdebase/apps/; revision=890967
-rw-r--r--src/kformattedballoontipdelegate.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kformattedballoontipdelegate.cpp b/src/kformattedballoontipdelegate.cpp
index 99fd4dfc1..8c112b7c8 100644
--- a/src/kformattedballoontipdelegate.cpp
+++ b/src/kformattedballoontipdelegate.cpp
@@ -78,8 +78,11 @@ void KFormattedBalloonTipDelegate::paint(QPainter *painter,
x += iconSize.width() + Border;
}
+ const QColor textColor = option->palette.color(QPalette::ToolTipText);
+ QString text = "<font color=\"" + textColor.name() + "\">" + item->text() + "</font>";
+
QTextDocument doc;
- doc.setHtml(item->text());
+ doc.setHtml(text);
QPixmap bitmap(doc.size().toSize());
bitmap.fill(Qt::transparent);
QPainter p(&bitmap);