]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix the "I can't/don't want to" finish the drag event (what is called
authorRafael Fernández López <ereslibre@kde.org>
Thu, 21 Jun 2007 02:18:54 +0000 (02:18 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Thu, 21 Jun 2007 02:18:54 +0000 (02:18 +0000)
drop :P), and the selection rect is shown.

CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=678293

src/klistview.cpp
src/klistview.h

index fff694e35e5a33a87f58897fd8717926e4bdc86d..0c65b9141f4409f471dcfa89f9f8ba9687d6b36c 100644 (file)
@@ -818,6 +818,13 @@ void KListView::leaveEvent(QEvent *event)
     viewport()->update();
 }
 
+void KListView::startDrag(Qt::DropActions supportedActions)
+{
+    d->mouseButtonPressed = false;
+
+    QListView::startDrag(supportedActions);
+}
+
 void KListView::rowsInserted(const QModelIndex &parent,
                              int start,
                              int end)
index 725b6e82ed828b79a82e19249358af530481046a..175d3a1ac701c6ae70d7a629b031c02c2c8dd0ea 100644 (file)
@@ -66,6 +66,8 @@ protected:
 
     virtual void leaveEvent(QEvent *event);
 
+    virtual void startDrag(Qt::DropActions supportedActions);
+
 protected Q_SLOTS:
     virtual void rowsInserted(const QModelIndex &parent,
                               int start,