[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/dolphin/src
From: Peter Penz <peter.penz () gmx ! at>
Date: 2008-11-30 18:23:06
Message-ID: 1228069386.331799.20061.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 890967 by ppenz:
use the defined tooltip text color
BUG: 170753
M +4 -1 kformattedballoontipdelegate.cpp
--- trunk/KDE/kdebase/apps/dolphin/src/kformattedballoontipdelegate.cpp #890966:890967
@@ -78,8 +78,11 @@
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic