summaryrefslogtreecommitdiff
path: root/src/gui/kernel/qwhatsthis.cpp
diff options
context:
space:
mode:
authorThomas Sondergaard <ts@medical-insight.com>2009-07-13 17:32:02 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-07-13 18:15:03 +0200
commit1cea2ed930377b1bb0d1ce583eacae87d999fc16 (patch)
tree66b5e4ccee4f9d260a9a3ade6547f831fc30c7bb /src/gui/kernel/qwhatsthis.cpp
parentb7598e32617ea8608d7c82800e1706d9180ddbd9 (diff)
downloadqt4-tools-1cea2ed930377b1bb0d1ce583eacae87d999fc16.tar.gz
QToolTip: Uses QPalette::ToolTipText default text color for rich text.
Task-number: 248429 Merge-request: 786 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
Diffstat (limited to 'src/gui/kernel/qwhatsthis.cpp')
-rw-r--r--src/gui/kernel/qwhatsthis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwhatsthis.cpp b/src/gui/kernel/qwhatsthis.cpp
index f38b0f6a27..f569c97ab9 100644
--- a/src/gui/kernel/qwhatsthis.cpp
+++ b/src/gui/kernel/qwhatsthis.cpp
@@ -351,6 +351,7 @@ void QWhatsThat::paintEvent(QPaintEvent*)
rect.translate(-r.x(), -r.y());
p.setClipRect(rect);
QAbstractTextDocumentLayout::PaintContext context;
+ context.palette.setColor(QPalette::Text, context.palette.toolTipText());
doc->documentLayout()->draw(&p, context);
}
else