[Kst] extragear/graphics/kst/src/libkstapp

Andrew Walker arwalker at sumusltd.com
Wed May 10 02:47:26 CEST 2006


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