diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-06-12 05:56:33 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-06-12 05:56:33 (GMT) |
commit | 79f58df5b28dca88a4359ea9a76325e1a4a7f4e5 (patch) | |
tree | fdc001b76633e2ad5607228e268da7a1d95c26e0 /src/declarative/fx | |
parent | 87dff0ac19fc8af4c30fd7959723fbdb60eb3bdf (diff) | |
download | Qt-79f58df5b28dca88a4359ea9a76325e1a4a7f4e5.zip Qt-79f58df5b28dca88a4359ea9a76325e1a4a7f4e5.tar.gz Qt-79f58df5b28dca88a4359ea9a76325e1a4a7f4e5.tar.bz2 |
Use standard cursor control for TextEdit.
Diffstat (limited to 'src/declarative/fx')
-rw-r--r-- | src/declarative/fx/qfxtextedit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxtextedit.cpp b/src/declarative/fx/qfxtextedit.cpp index 5492aaa..5f2f36c 100644 --- a/src/declarative/fx/qfxtextedit.cpp +++ b/src/declarative/fx/qfxtextedit.cpp @@ -682,7 +682,9 @@ void QFxTextEdit::keyPressEvent(QKeyEvent *event) if (event->isAccepted()) return; - QTextCursor c = textCursor(); + //### this causes non-standard cursor behavior in some cases. + // is it still needed? + /*QTextCursor c = textCursor(); QTextCursor::MoveOperation op = QTextCursor::NoMove; if (event == QKeySequence::MoveToNextChar) { op = QTextCursor::Right; @@ -700,7 +702,7 @@ void QFxTextEdit::keyPressEvent(QKeyEvent *event) if (op != QTextCursor::NoMove && !c.movePosition(op)) event->ignore(); - else + else*/ d->control->processEvent(event, QPointF(0, 0)); } |