diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-07 09:49:59 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-07 09:52:15 (GMT) |
commit | 53b116be1bbadd416449d9a0104f514139f495c8 (patch) | |
tree | 6baf735361c657b82283734807875dc1aefd55f8 /src | |
parent | ea80c1682ec2bb3bc876d63518e3e6ce794df913 (diff) | |
download | Qt-53b116be1bbadd416449d9a0104f514139f495c8.zip Qt-53b116be1bbadd416449d9a0104f514139f495c8.tar.gz Qt-53b116be1bbadd416449d9a0104f514139f495c8.tar.bz2 |
ItemViews: it would go into DraggingState even without clicking an item
We now just make sure that we start the drag if there was a pressed
index.
Task-number: 252643
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/itemviews/qabstractitemview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp index b64bc71..cefe8a5 100644 --- a/src/gui/itemviews/qabstractitemview.cpp +++ b/src/gui/itemviews/qabstractitemview.cpp @@ -1602,7 +1602,7 @@ void QAbstractItemView::mouseMoveEvent(QMouseEvent *event) d->checkMouseMove(index); #ifndef QT_NO_DRAGANDDROP - if (index.isValid() + if (d->pressedIndex.isValid() && d->dragEnabled && (state() != DragSelectingState) && (event->buttons() != Qt::NoButton) |