diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-01-20 12:31:38 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-01-20 12:31:38 (GMT) |
commit | 20f1d1e7d3178a5fe67e3fd7a8ba80a9fc134a50 (patch) | |
tree | aac8c4cf6332d33ee8f6d02a162fffc6ef7b7d2b /src/gui/painting/qpaintbuffer.cpp | |
parent | 3c902c0436c68d0c689a813fbef009ac4689b3c4 (diff) | |
download | Qt-20f1d1e7d3178a5fe67e3fd7a8ba80a9fc134a50.zip Qt-20f1d1e7d3178a5fe67e3fd7a8ba80a9fc134a50.tar.gz Qt-20f1d1e7d3178a5fe67e3fd7a8ba80a9fc134a50.tar.bz2 |
Compile
Compile QStaticText and also use font object in QPaintBuffer since it's
now available
Diffstat (limited to 'src/gui/painting/qpaintbuffer.cpp')
-rw-r--r-- | src/gui/painting/qpaintbuffer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gui/painting/qpaintbuffer.cpp b/src/gui/painting/qpaintbuffer.cpp index e0067b0..e41ad57 100644 --- a/src/gui/painting/qpaintbuffer.cpp +++ b/src/gui/painting/qpaintbuffer.cpp @@ -965,9 +965,6 @@ void QPaintBufferEngine::drawStaticTextItem(QStaticTextItem *staticTextItem) { QString text = QString(staticTextItem->chars, staticTextItem->numChars); - QFontDef fontDef = staticTextItem->fontEngine->fontDef; - QFont font(fontDef.family, fontDef.pointSize, fontDef.weight, fontDef.style == QFont::StyleItalic); - QTransform xform; for (int i=buffer->commands.size()-1; i>=0; --i) { const QPaintBufferCommand &cmd = buffer->commands.at(i); @@ -978,10 +975,10 @@ void QPaintBufferEngine::drawStaticTextItem(QStaticTextItem *staticTextItem) } QStaticText staticText(text); - staticText.prepare(xform, font); + staticText.prepare(xform, staticTextItem->font); QVariantList variants; - variants << QVariant(font) << QVariant::fromValue(staticText); + variants << QVariant(staticTextItem->font) << QVariant::fromValue(staticText); buffer->addCommand(QPaintBufferPrivate::Cmd_DrawStaticText, QVariant(variants)); } |