From 03bb0b0fa050494570f4f9141356f8d3f06dfbf9 Mon Sep 17 00:00:00 2001 From: "Simon A. Eugster" Date: Mon, 11 Jun 2012 09:45:01 +0200 Subject: [PATCH] Mention setFont() in QPainter::drawText() functions Change-Id: Id0d06d27f3aeb6a6e7e1a415da78591ae5eae91c Reviewed-by: Marc Mutz Reviewed-by: Casper van Donderen --- src/gui/painting/qpainter.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 6c361bfbca..80da2e530c 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -5663,6 +5663,8 @@ void QPainterPrivate::drawGlyphs(const quint32 *glyphArray, QFixedPoint *positio By default, QPainter draws text anti-aliased. \note The y-position is used as the baseline of the font. + + \sa setFont(), setPen() */ void QPainter::drawText(const QPointF &p, const QString &str) @@ -5918,6 +5920,7 @@ void QPainter::drawText(const QRect &r, int flags, const QString &str, QRect *br \note The y-position is used as the baseline of the font. + \sa setFont(), setPen() */ /*! @@ -5990,6 +5993,8 @@ void QPainter::drawText(const QRectF &r, int flags, const QString &str, QRectF * By default, QPainter draws text anti-aliased. \note The y-coordinate of \a rectangle is used as the top of the font. + + \sa setFont(), setPen() */ /*! @@ -6004,6 +6009,7 @@ void QPainter::drawText(const QRectF &r, int flags, const QString &str, QRectF * \note The y-position is used as the baseline of the font. + \sa setFont(), setPen() */ /*! @@ -6038,7 +6044,7 @@ void QPainter::drawText(const QRectF &r, int flags, const QString &str, QRectF * \note The y-position is used as the top of the font. - \sa Qt::AlignmentFlag, Qt::TextFlag + \sa Qt::AlignmentFlag, Qt::TextFlag, setFont(), setPen() */ /*! @@ -6052,6 +6058,8 @@ void QPainter::drawText(const QRectF &r, int flags, const QString &str, QRectF * By default, QPainter draws text anti-aliased. \note The y-coordinate of \a rectangle is used as the top of the font. + + \sa setFont(), setPen() */ void QPainter::drawText(const QRectF &r, const QString &text, const QTextOption &o) {