diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-03-24 12:33:31 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-04-19 08:55:55 (GMT) |
commit | 8c68e8ffa32ca26d0fd87f1349d6783e4242a9d1 (patch) | |
tree | 6ae0a7269151fefc17423d3d2d3a15436d15d851 /src/gui/text/qtextengine_p.h | |
parent | 1d28996fd635eed07eff61502ab67f7158ba43cd (diff) | |
download | Qt-8c68e8ffa32ca26d0fd87f1349d6783e4242a9d1.zip Qt-8c68e8ffa32ca26d0fd87f1349d6783e4242a9d1.tar.gz Qt-8c68e8ffa32ca26d0fd87f1349d6783e4242a9d1.tar.bz2 |
Let QTextLine decide its own x position in QPainter
So that it can take trailing space width into account when
doing right aligned text drawing.
Backported from master.
Task-number: QTBUG-18303
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qtextengine_p.h')
-rw-r--r-- | src/gui/text/qtextengine_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextengine_p.h b/src/gui/text/qtextengine_p.h index 34723ab..67d7453 100644 --- a/src/gui/text/qtextengine_p.h +++ b/src/gui/text/qtextengine_p.h @@ -592,6 +592,7 @@ public: QString elidedText(Qt::TextElideMode mode, const QFixed &width, int flags = 0) const; void shapeLine(const QScriptLine &line); + QFixed leadingSpaceWidth(const QScriptLine &line); private: void setBoundary(int strPos) const; |