diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2010-06-05 19:15:56 (GMT) |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2010-06-09 22:07:28 (GMT) |
commit | 6287977849ff5cab64a944fb0590d306a79f3637 (patch) | |
tree | d54bee65d944b396172ff6eda20e7d19965d320d | |
parent | 312c028d44a80f5d6029eb166a0de731f8452525 (diff) | |
download | Qt-6287977849ff5cab64a944fb0590d306a79f3637.zip Qt-6287977849ff5cab64a944fb0590d306a79f3637.tar.gz Qt-6287977849ff5cab64a944fb0590d306a79f3637.tar.bz2 |
The default text direction for QTextOption is Qt::LayoutDirectionAuto
The change is binary compatible, even though the changed bitfield is
being accessed inline. The reason is that we extend by a bit that
has previously been initialized to 0. bitordering will ensure that old
code reads Qt::LayoutAuto as Qt::LeftToRight.
Task-number: Part of QT-3292
Reviewed-by: Simon Hausmann
-rw-r--r-- | src/gui/text/qtextoption.cpp | 2 | ||||
-rw-r--r-- | src/gui/text/qtextoption.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/text/qtextoption.cpp b/src/gui/text/qtextoption.cpp index c1e254c..3b02ebe 100644 --- a/src/gui/text/qtextoption.cpp +++ b/src/gui/text/qtextoption.cpp @@ -65,7 +65,7 @@ QTextOption::QTextOption() tab(-1), d(0) { - direction = QApplication::layoutDirection(); + direction = Qt::LayoutDirectionAuto; } /*! diff --git a/src/gui/text/qtextoption.h b/src/gui/text/qtextoption.h index 1381ed1..fa8c6f2 100644 --- a/src/gui/text/qtextoption.h +++ b/src/gui/text/qtextoption.h @@ -134,8 +134,8 @@ private: uint align : 8; uint wordWrap : 4; uint design : 1; - uint direction : 1; - uint unused : 19; + uint direction : 2; + uint unused : 18; uint f; qreal tab; QTextOptionPrivate *d; |