diff options
author | Jonas Karlsson <jonas.karlsson@qt.io> | 2020-08-21 13:01:43 +0200 |
---|---|---|
committer | Jonas Karlsson <jonas.karlsson@qt.io> | 2020-08-28 07:27:27 +0200 |
commit | 174154bcac2780cb704011662f2e9c1233fec933 (patch) | |
tree | a93dff334e4b2f47d12662b1967af0a8307c40b9 /src/gui/text/qtextlayout.h | |
parent | 3558704ed5c3d2c6dc6d024dfa454997469ca75f (diff) |
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 <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/gui/text/qtextlayout.h')
-rw-r--r-- | src/gui/text/qtextlayout.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<QGlyphRun> 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; |