diff options
author | Thomas Sondergaard <ts@medical-insight.com> | 2009-07-13 15:32:02 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-13 16:15:03 (GMT) |
commit | 1cea2ed930377b1bb0d1ce583eacae87d999fc16 (patch) | |
tree | 66b5e4ccee4f9d260a9a3ade6547f831fc30c7bb /src/gui/kernel/qwhatsthis.cpp | |
parent | b7598e32617ea8608d7c82800e1706d9180ddbd9 (diff) | |
download | Qt-1cea2ed930377b1bb0d1ce583eacae87d999fc16.zip Qt-1cea2ed930377b1bb0d1ce583eacae87d999fc16.tar.gz Qt-1cea2ed930377b1bb0d1ce583eacae87d999fc16.tar.bz2 |
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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwhatsthis.cpp b/src/gui/kernel/qwhatsthis.cpp index f38b0f6..f569c97 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 |