From 174154bcac2780cb704011662f2e9c1233fec933 Mon Sep 17 00:00:00 2001 From: Jonas Karlsson Date: Fri, 21 Aug 2020 13:01:43 +0200 Subject: Remove "internal" parameter in QTextLine::draw() The method is split up into a private and public version, where the parameter is moved into the private method. Fixes: QTBUG-84210 Change-Id: I79e9e02c9b4cc25d31db066e5a9567fdb9bc9fd0 Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Konstantin Ritt --- src/gui/text/qtextlayout.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/text/qtextlayout.h') diff --git a/src/gui/text/qtextlayout.h b/src/gui/text/qtextlayout.h index cf3b4bb869..16dde50f05 100644 --- a/src/gui/text/qtextlayout.h +++ b/src/gui/text/qtextlayout.h @@ -264,7 +264,7 @@ public: int lineNumber() const { return index; } - void draw(QPainter *p, const QPointF &point, const QTextLayout::FormatRange *selection = nullptr) const; + void draw(QPainter *painter, const QPointF &position) const; #if !defined(QT_NO_RAWFONT) QList glyphRuns(int from = -1, int length = -1) const; @@ -273,6 +273,8 @@ public: private: QTextLine(int line, QTextEngine *e) : index(line), eng(e) {} void layout_helper(int numGlyphs); + void draw_internal(QPainter *p, const QPointF &pos, + const QTextLayout::FormatRange *selection) const; friend class QTextLayout; friend class QTextFragment; -- cgit v1.2.3