X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/971d65338f90f8baa020bb161da4e1fa0e5b0883..148282e2d856b47ceb191eeef4c834118c8cdffd:/src/kformattedballoontipdelegate.cpp diff --git a/src/kformattedballoontipdelegate.cpp b/src/kformattedballoontipdelegate.cpp index 8c112b7c8..99fd4dfc1 100644 --- a/src/kformattedballoontipdelegate.cpp +++ b/src/kformattedballoontipdelegate.cpp @@ -78,11 +78,8 @@ 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(text); + doc.setHtml(item->text()); QPixmap bitmap(doc.size().toSize()); bitmap.fill(Qt::transparent); QPainter p(&bitmap);