diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2018-03-02 01:00:10 +0100 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2018-03-02 01:00:10 +0100 |
commit | 6cf3428a43c5744096db0c849aa975c4cb06bd31 (patch) | |
tree | f7961a992461793ea40781516903c5dd629fe1e5 /src/gui/text/qtextengine_p.h | |
parent | 529cb7217c0162c31ef6f309730e93612b9798d3 (diff) | |
parent | b3e91b66b9175c1c3ff5f73f3ac231f74f9bf932 (diff) |
Merge remote-tracking branch 'origin/5.11' into dev
Change-Id: I42ec9e6aafc203465cbeb88af70c7af26b7df8ed
Diffstat (limited to 'src/gui/text/qtextengine_p.h')
-rw-r--r-- | src/gui/text/qtextengine_p.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gui/text/qtextengine_p.h b/src/gui/text/qtextengine_p.h index 4b1564e69c..42061deff5 100644 --- a/src/gui/text/qtextengine_p.h +++ b/src/gui/text/qtextengine_p.h @@ -147,9 +147,17 @@ struct Q_AUTOTEST_EXPORT QScriptAnalysis TabOrObject = Tab, Object = 7 }; - unsigned short script : 7; - unsigned short bidiLevel : 6; // Unicode Bidi algorithm embedding level (0-61) - unsigned short flags : 3; + enum BidiFlags { + BidiBN = 1, + BidiMaybeResetToParagraphLevel = 2, + BidiResetToParagraphLevel = 4, + BidiMirrored = 8 + }; + unsigned short script : 8; + unsigned short flags : 4; + unsigned short bidiFlags : 4; + unsigned short bidiLevel : 8; // Unicode Bidi algorithm embedding level (0-125) + QChar::Direction bidiDirection : 8; // used when running the bidi algorithm inline bool operator == (const QScriptAnalysis &other) const { return script == other.script && bidiLevel == other.bidiLevel && flags == other.flags; } |