From 10dc2171cf004705f8212f5100b99bfde04c8d54 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Tue, 1 Nov 2011 17:17:04 +0200 Subject: Fix broken indendation with hard tabs Change-Id: I1aa161ddab55f11683b2eee3c205505a829013c4 Reviewed-by: Lars Knoll Reviewed-by: Joona Petrell --- src/widgets/widgets/qlineedit_p.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/widgets/qlineedit_p.cpp b/src/widgets/widgets/qlineedit_p.cpp index cd7fa13b36..247d0afb0b 100644 --- a/src/widgets/widgets/qlineedit_p.cpp +++ b/src/widgets/widgets/qlineedit_p.cpp @@ -257,11 +257,11 @@ bool QLineEditPrivate::sendMouseEventToInputContext( QMouseEvent *e ) #if !defined QT_NO_IM Q_Q(QLineEdit); if ( control->composeMode() ) { - int tmp_cursor = xToPos(e->pos().x()); - int mousePos = tmp_cursor - control->cursor(); - if ( mousePos < 0 || mousePos > control->preeditAreaText().length() ) { + int tmp_cursor = xToPos(e->pos().x()); + int mousePos = tmp_cursor - control->cursor(); + if ( mousePos < 0 || mousePos > control->preeditAreaText().length() ) { mousePos = -1; - // don't send move events outside the preedit area + // don't send move events outside the preedit area if ( e->type() == QEvent::MouseMove ) return true; } -- cgit v1.2.3