From: Peter Penz Date: Sun, 30 Nov 2008 18:23:05 +0000 (+0000) Subject: use the defined tooltip text color X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/971d65338f90f8baa020bb161da4e1fa0e5b0883?ds=inline use the defined tooltip text color BUG: 170753 svn path=/trunk/KDE/kdebase/apps/; revision=890967 --- 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 = "" + item->text() + ""; + QTextDocument doc; - doc.setHtml(item->text()); + doc.setHtml(text); QPixmap bitmap(doc.size().toSize()); bitmap.fill(Qt::transparent); QPainter p(&bitmap);