From: Peter Penz Date: Sat, 21 Nov 2009 22:47:56 +0000 (+0000) Subject: apply the correct foreground role for widgets that represent the tooltip content X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/3be4adae11b9f9466bc926a83372213a34fb92e2?ds=inline apply the correct foreground role for widgets that represent the tooltip content svn path=/trunk/KDE/kdebase/apps/; revision=1052508 --- diff --git a/src/tooltips/ktooltip.cpp b/src/tooltips/ktooltip.cpp index c476fda1b..d0da7983b 100644 --- a/src/tooltips/ktooltip.cpp +++ b/src/tooltips/ktooltip.cpp @@ -85,6 +85,7 @@ namespace KToolTip void showText(const QPoint& pos, const QString& text) { QLabel* label = new QLabel(text); + label->setForegroundRole(QPalette::ToolTipText); showTip(pos, label); } diff --git a/src/tooltips/tooltipmanager.cpp b/src/tooltips/tooltipmanager.cpp index 957fdc079..cceda5305 100644 --- a/src/tooltips/tooltipmanager.cpp +++ b/src/tooltips/tooltipmanager.cpp @@ -248,6 +248,7 @@ QWidget* ToolTipManager::createTipContent(const QPixmap& pixmap) const pixmapLabel->setFixedSize(pixmap.size()); KMetaDataWidget* metaDataWidget = new KMetaDataWidget(tipContent); + metaDataWidget->setForegroundRole(QPalette::ToolTipText); metaDataWidget->setItem(m_item); metaDataWidget->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); metaDataWidget->setReadOnly(true);