summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-08-06 13:23:39 (GMT)
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-08-06 13:25:22 (GMT)
commite1c47a1d3cd8c2a0f6b40fddc2f1fae1cc7e7307 (patch)
treebec89b346426e88bf6e830fa8baea43b0f1b36de /src
parent4b22dc7d36e9ef38bbfc709c63e73718110ce385 (diff)
downloadQt-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')
-rw-r--r--src/gui/widgets/qlinecontrol_p.h2
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);
}