summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qlineedit_p.cpp
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>2011-11-01 17:17:04 +0200
committerQt by Nokia <qt-info@nokia.com>2011-11-05 23:47:02 +0100
commit10dc2171cf004705f8212f5100b99bfde04c8d54 (patch)
treec67a489a62105ca44fabb1db590f6a74749ca599 /src/widgets/widgets/qlineedit_p.cpp
parent8bd40fef0733a4796a308b3bc137a05296e142c4 (diff)
Fix broken indendation with hard tabs
Change-Id: I1aa161ddab55f11683b2eee3c205505a829013c4 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Diffstat (limited to 'src/widgets/widgets/qlineedit_p.cpp')
-rw-r--r--src/widgets/widgets/qlineedit_p.cpp8
1 files changed, 4 insertions, 4 deletions
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;
}