diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2010-08-18 16:03:54 +0200 |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2010-08-19 16:42:41 +0200 |
commit | ee2ff544fec7a40ff3096edc4bf7cc7ca8cfa191 (patch) | |
tree | a7816fd2c2f835e7aa2ff1520a194d68b1dbb004 /src/gui/text/qtextcontrol.cpp | |
parent | e0e6fece5f79609a39a410044437e4d78eca56c6 (diff) |
Ignore LayoutDirectionChange event in QTextControl
LayoutDirectionChange should no longer affect text direction in 4.7, by
ignoring this event in QTextControl, we make the behavior consistent
with QLineEdit.
Reviewed-by: Lars Knoll
Diffstat (limited to 'src/gui/text/qtextcontrol.cpp')
-rw-r--r-- | src/gui/text/qtextcontrol.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gui/text/qtextcontrol.cpp b/src/gui/text/qtextcontrol.cpp index 3d34687016..5fe0c0cee0 100644 --- a/src/gui/text/qtextcontrol.cpp +++ b/src/gui/text/qtextcontrol.cpp @@ -1101,14 +1101,6 @@ void QTextControl::processEvent(QEvent *e, const QMatrix &matrix, QWidget *conte } } break; - case QEvent::LayoutDirectionChange: { - if (contextWidget) { - QTextOption opt = document()->defaultTextOption(); - opt.setTextDirection(contextWidget->layoutDirection()); - document()->setDefaultTextOption(opt); - } - } - // FALL THROUGH default: break; } |