[Kst] [Bug 127042] Drag in view object manager has problems

Andrew Walker arwalker at sumusltd.com
Wed May 10 02:48:55 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=127042         




------- Additional Comments From arwalker sumusltd com  2006-05-10 02:48 -------
SVN commit 539229 by arwalker:

CCBUG:127042 Still not perfect but better than before

 M  +9 -1      kstviewmanager_i.cpp  
 M  +1 -0      kstviewmanager_i.h  


--- trunk/extragear/graphics/kst/src/libkstapp/kstviewmanager_i.cpp #539228:539229
 @ -100,6 +100,12  @
   return drag;
 }
 
+void KstViewListView::contentsMouseMoveEvent(QMouseEvent *e) {
+  viewport()->setCursor(Qt::ArrowCursor);
+  
+  QListView::contentsMouseMoveEvent(e);
+}
+
 // ==============================================
 
 KstViewObjectItem::KstViewObjectItem(QListView *parent, KstTopLevelViewPtr x, KstViewManagerI *vm, int localUseCount)
 @ -147,7 +153,6  @
 KstViewObjectItem::~KstViewObjectItem() {
 }
 
-
 bool KstViewObjectItem::acceptDrop(const QMimeSource *mime) const {
   bool retVal = false;
 
 @ -172,6 +177,9  @
     }
   }
   
+  //
+  // the following should not be necessary but is due to a bug in QListView...
+  //
   if (retVal) {
     _vm->ViewView->viewport()->setCursor(Qt::ArrowCursor);
   } else {
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewmanager_i.h #539228:539229
 @ -32,6 +32,7  @
    
   protected:
     virtual QDragObject* dragObject();
+    virtual void contentsMouseMoveEvent(QMouseEvent *e);
 };
 
 class KstViewObjectItem : public QListViewItem {


More information about the Kst mailing list