From 689a80543f458e4ffb52de73005357212901a00c Mon Sep 17 00:00:00 2001 From: Rafael Fernández López Date: Thu, 21 Jun 2007 02:18:54 +0000 Subject: Fix the "I can't/don't want to" finish the drag event (what is called drop :P), and the selection rect is shown. CCMAIL: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=678293 --- src/klistview.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/klistview.cpp') diff --git a/src/klistview.cpp b/src/klistview.cpp index fff694e35..0c65b9141 100644 --- a/src/klistview.cpp +++ b/src/klistview.cpp @@ -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) -- cgit v1.3