┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-06-21 02:18:54 +0000
committerRafael Fernández López <[email protected]>2007-06-21 02:18:54 +0000
commit689a80543f458e4ffb52de73005357212901a00c (patch)
treed1af373875c21590558ae261f07a249fa08c342b
parentc01979aff1fc8b6afba43685f58aa8d8bb9975c6 (diff)
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: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=678293
-rw-r--r--src/klistview.cpp7
-rw-r--r--src/klistview.h2
2 files changed, 9 insertions, 0 deletions
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)
diff --git a/src/klistview.h b/src/klistview.h
index 725b6e82e..175d3a1ac 100644
--- a/src/klistview.h
+++ b/src/klistview.h
@@ -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,