summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextoption.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2010-06-05 21:15:56 +0200
committerLars Knoll <lars.knoll@nokia.com>2010-06-10 00:07:28 +0200
commit6287977849ff5cab64a944fb0590d306a79f3637 (patch)
treed54bee65d944b396172ff6eda20e7d19965d320d /src/gui/text/qtextoption.cpp
parent312c028d44a80f5d6029eb166a0de731f8452525 (diff)
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
Diffstat (limited to 'src/gui/text/qtextoption.cpp')
-rw-r--r--src/gui/text/qtextoption.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextoption.cpp b/src/gui/text/qtextoption.cpp
index c1e254cc48..3b02ebe769 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;
}
/*!