[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasmagenericshell
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2011-01-21 15:37:52
Message-ID: 20110121153752.BDB35AC8B8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1216149 by aseigo:

always reset the cursor, and do so before the drag
BUG:263824


 M  +1 -2      abstracticon.cpp  


--- trunk/KDE/kdebase/workspace/libs/plasmagenericshell/abstracticon.cpp \
#1216148:1216149 @@ -171,6 +171,7 @@
     if (event->button() != Qt::LeftButton &&
         (event->pos() - \
event->buttonDownPos(Qt::LeftButton)).toPoint().manhattanLength() > \
QApplication::startDragDistance()) {  event->accept();
+        setCursor(Qt::OpenHandCursor);
         QMimeData *data = mimeData();
         if (data && !data->formats().isEmpty()) {
             qDebug() << "Start Dragging";
@@ -181,8 +182,6 @@
 
             drag->setMimeData(mimeData());
             drag->exec();
-
-            setCursor(Qt::OpenHandCursor);
         } else {
             delete data;
         }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic