diff options
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; } |