diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-01 11:51:35 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-01 11:51:35 (GMT) |
commit | 942cf8cc8504af0683c3d03c886418fb9e69bd7d (patch) | |
tree | 6859a2b992817a47d010693e6ab35235d3eda99b /src/gui/painting/qpainter.cpp | |
parent | 81b89c410a0df438db65b6124b4db94c8628c52c (diff) | |
download | Qt-942cf8cc8504af0683c3d03c886418fb9e69bd7d.zip Qt-942cf8cc8504af0683c3d03c886418fb9e69bd7d.tar.gz Qt-942cf8cc8504af0683c3d03c886418fb9e69bd7d.tar.bz2 |
Make QStaticText private API
Turns QStaticText into private API in preparation for Qt 4.6.x. The
related functions in QPainter are marked as internal in the docs. There
are already internal functions in QPainter, so this seemed like a
reasonable solution. Since the functions require QStaticText they will
not be accessible to anyone who does not include private API.
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 521072f..c29cf5d 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -70,6 +70,7 @@ #include <private/qpaintengine_raster_p.h> #include <private/qmath_p.h> #include <private/qstatictext_p.h> +#include <private/qstatictext_p_p.h> QT_BEGIN_NAMESPACE @@ -5707,18 +5708,24 @@ void QPainter::drawText(const QPointF &p, const QString &str) /*! \fn void QPainter::drawStaticText(const QPoint &position, const QStaticText &staticText) + \internal + \overload */ /*! \fn void QPainter::drawStaticText(int x, int y, const QStaticText &staticText) + \internal + \overload */ /*! Draws the given \a staticText beginning at the given \a position. + \internal + This function can be used to optimize drawing text if the text and its layout is updated seldomly. |