From ee2ff544fec7a40ff3096edc4bf7cc7ca8cfa191 Mon Sep 17 00:00:00 2001 From: Jiang Jiang Date: Wed, 18 Aug 2010 16:03:54 +0200 Subject: 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 --- src/gui/text/qtextcontrol.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/gui/text/qtextcontrol.cpp b/src/gui/text/qtextcontrol.cpp index 3d34687..5fe0c0c 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; } -- cgit v0.12