summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintbuffer.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-10 13:16:24 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-10 13:16:24 (GMT)
commit2e8d090fa6813a2e37c9ed27d69bc3fc99a7ae35 (patch)
treeeaf54ffe4e8a90b8ba1fe03855ab3f0808b012e8 /src/gui/painting/qpaintbuffer.cpp
parent8032423bb8fa91c623ece61bff528adfd49e8685 (diff)
downloadQt-2e8d090fa6813a2e37c9ed27d69bc3fc99a7ae35.zip
Qt-2e8d090fa6813a2e37c9ed27d69bc3fc99a7ae35.tar.gz
Qt-2e8d090fa6813a2e37c9ed27d69bc3fc99a7ae35.tar.bz2
Make QStaticText public API again
QStaticText was previously made private API to support inclusion in Qt 4.6.x. This change turns it back into public API for Qt 4.7.0.
Diffstat (limited to 'src/gui/painting/qpaintbuffer.cpp')
-rw-r--r--src/gui/painting/qpaintbuffer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/painting/qpaintbuffer.cpp b/src/gui/painting/qpaintbuffer.cpp
index 51eb681..664d864 100644
--- a/src/gui/painting/qpaintbuffer.cpp
+++ b/src/gui/painting/qpaintbuffer.cpp
@@ -45,8 +45,8 @@
#include <private/qfontengine_p.h>
#include <private/qemulationpaintengine_p.h>
#include <private/qimage_p.h>
+#include <qstatictext.h>
#include <private/qstatictext_p.h>
-#include <private/qstatictext_p_p.h>
#include <QDebug>
@@ -1448,9 +1448,10 @@ void QPainterReplayer::process(const QPaintBufferCommand &cmd)
QStaticText text(variants.at(0).value<QStaticText>());
painter->setFont(font);
- qt_draw_static_text(painter, QPointF(0, 0), text);
+ painter->drawStaticText(QPointF(0, 0), text);
- break; }
+ break;
+ }
case QPaintBufferPrivate::Cmd_DrawText: {
QPointF pos(d->floats.at(cmd.extra), d->floats.at(cmd.extra+1));