diff options
author | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-08-06 13:23:39 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eblomfel@trolltech.com> | 2009-08-06 13:25:22 (GMT) |
commit | e1c47a1d3cd8c2a0f6b40fddc2f1fae1cc7e7307 (patch) | |
tree | bec89b346426e88bf6e830fa8baea43b0f1b36de /src/gui/widgets | |
parent | 4b22dc7d36e9ef38bbfc709c63e73718110ce385 (diff) | |
download | Qt-e1c47a1d3cd8c2a0f6b40fddc2f1fae1cc7e7307.zip Qt-e1c47a1d3cd8c2a0f6b40fddc2f1fae1cc7e7307.tar.gz Qt-e1c47a1d3cd8c2a0f6b40fddc2f1fae1cc7e7307.tar.bz2 |
Fix test failure in tst_QDateTimeEdit::task118867
setCursorPosition() should be able to set the cursor at the end of the
string. This is a copy-paste error made when refactoring QLineEdit.
Reviewed-by: Gunnar
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qlinecontrol_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qlinecontrol_p.h b/src/gui/widgets/qlinecontrol_p.h index e047cb0..ad4e4e4 100644 --- a/src/gui/widgets/qlinecontrol_p.h +++ b/src/gui/widgets/qlinecontrol_p.h @@ -641,7 +641,7 @@ inline void QLineControl::setCursorPosition(int pos) { if (pos < 0) pos = 0; - if (pos < m_text.length()) + if (pos <= m_text.length()) moveCursor(pos); } |