summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlineedit.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-09-15 23:52:04 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-09-15 23:52:04 (GMT)
commitc878fde1d0ddd54c8dff485e7c7146b3d8962fb9 (patch)
tree158117d3923d300466a00edf2e9c6f2598295cff /src/gui/widgets/qlineedit.cpp
parent4e2163a5c4eec9eeacf8c7260dbf8fb7c74d2b44 (diff)
downloadQt-c878fde1d0ddd54c8dff485e7c7146b3d8962fb9.zip
Qt-c878fde1d0ddd54c8dff485e7c7146b3d8962fb9.tar.gz
Qt-c878fde1d0ddd54c8dff485e7c7146b3d8962fb9.tar.bz2
Fix QLineEdit drag'n'drop
QLineEdit shouldn't have been moving the text cursor while dragging. Task-number: 260457 Reviewed-by: mbm
Diffstat (limited to 'src/gui/widgets/qlineedit.cpp')
-rw-r--r--src/gui/widgets/qlineedit.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp
index e536928..629e839 100644
--- a/src/gui/widgets/qlineedit.cpp
+++ b/src/gui/widgets/qlineedit.cpp
@@ -1434,7 +1434,6 @@ void QLineEdit::mousePressEvent(QMouseEvent* e)
#ifndef QT_NO_DRAGANDDROP
if (!mark && d->dragEnabled && d->control->echoMode() == Normal &&
e->button() == Qt::LeftButton && d->control->inSelection(e->pos().x())) {
- d->control->moveCursor(cursor);
d->dndPos = e->pos();
if (!d->dndTimer.isActive())
d->dndTimer.start(QApplication::startDragTime(), this);