]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kformattedballoontipdelegate.cpp
use a smaller step size when using the scroll wheel
[dolphin.git] / src / kformattedballoontipdelegate.cpp
index 8c112b7c84efebeaf59a566d33bc51a56542addb..99fd4dfc17a5fd9c9c1f3f609da1e6f3167daab3 100644 (file)
@@ -78,11 +78,8 @@ 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(text);
+    doc.setHtml(item->text());
     QPixmap bitmap(doc.size().toSize());
     bitmap.fill(Qt::transparent);
     QPainter p(&bitmap);