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

List:       kde-commits
Subject:    branches/KDE/4.6/kdebase/workspace/libs/plasmagenericshell
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2011-01-21 15:44:47
Message-ID: 20110121154447.C9CDEAC8B8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1216150 by aseigo:

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


 M  +1 -2      abstracticon.cpp  


--- branches/KDE/4.6/kdebase/workspace/libs/plasmagenericshell/abstracticon.cpp \
#1216149:1216150 @@ -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