diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-04-16 03:55:39 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-04-16 03:59:58 (GMT) |
commit | 2913a71672a6cbe3022e167cf9d318beb2f29ee3 (patch) | |
tree | a3fd610bd8ea569b69871edbca8d8eed86b561dc /src/gui/text/qstatictext.cpp | |
parent | ac0fc4e9b0ed314e7d49e8dc0e9ded0922aab8e9 (diff) | |
download | Qt-2913a71672a6cbe3022e167cf9d318beb2f29ee3.zip Qt-2913a71672a6cbe3022e167cf9d318beb2f29ee3.tar.gz Qt-2913a71672a6cbe3022e167cf9d318beb2f29ee3.tar.bz2 |
Fix building of corelib, network and gui with qconfig minimal.
The bearer management code, which this bug is for, was fixed by MR 517
previously.
Task-number: QTBUG-9493
Reviewed-by: alex
Diffstat (limited to 'src/gui/text/qstatictext.cpp')
-rw-r--r-- | src/gui/text/qstatictext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qstatictext.cpp b/src/gui/text/qstatictext.cpp index 06b0d3b..8027389 100644 --- a/src/gui/text/qstatictext.cpp +++ b/src/gui/text/qstatictext.cpp @@ -584,11 +584,13 @@ void QStaticTextPrivate::paintText(const QPointF &topLeftPosition, QPainter *p) textLayout.draw(p, topLeftPosition); } else { QTextDocument document; +#ifndef QT_NO_CSSPARSER QColor color = p->pen().color(); document.setDefaultStyleSheet(QString::fromLatin1("body { color: #%1%2%3 }") .arg(QString::number(color.red(), 16), 2, QLatin1Char('0')) .arg(QString::number(color.green(), 16), 2, QLatin1Char('0')) .arg(QString::number(color.blue(), 16), 2, QLatin1Char('0'))); +#endif document.setDefaultFont(font); document.setDocumentMargin(0.0); if (textWidth >= 0.0) |