[Uml-devel] KDE/kdesdk/umbrello/umbrello

Sharan Rao sharanrao at gmail.com
Sat Feb 9 10:53:49 UTC 2008


SVN commit 772657 by sharan:

Use Qt4 API for drag/drop events in ListView. Drag and Drop in ListView works (again) now 


 M  +6 -6      umllistview.cpp  
 M  +3 -3      umllistview.h  


--- trunk/KDE/kdesdk/umbrello/umbrello/umllistview.cpp #772656:772657
@@ -2867,18 +2867,18 @@
 }
 
 
-void UMLListView::contentsDragEnterEvent(QDragEnterEvent* event) {
+void UMLListView::dragEnterEvent(QDragEnterEvent* event) {
     event->accept();
-    K3ListView::contentsDragEnterEvent(event);
+    K3ListView::dragEnterEvent(event);
 }
 
 
-void UMLListView::contentsDragMoveEvent(QDragMoveEvent* event) {
+void UMLListView::dragMoveEvent(QDragMoveEvent* event) {
     event->accept();
-    K3ListView::contentsDragMoveEvent( event );
+    K3ListView::dragMoveEvent( event );
 }
 
-void UMLListView::contentsDropEvent(QDropEvent* event) {
+void UMLListView::dropEvent(QDropEvent* event) {
     if ( !acceptDrag( event ) )
         event->ignore();
     else {
@@ -2893,7 +2893,7 @@
       slotDropped( event, 0, item );
 
     }
-    K3ListView::contentsDropEvent( event );
+    K3ListView::dropEvent( event );
 }
 
 void UMLListView::setBackgroundColor(const QColor & color)
--- trunk/KDE/kdesdk/umbrello/umbrello/umllistview.h #772656:772657
@@ -328,9 +328,9 @@
 
     bool acceptDrag (QDropEvent* event) const;
     void keyPressEvent(QKeyEvent *);
-    void contentsDragEnterEvent(QDragEnterEvent* event);
-    void contentsDragMoveEvent(QDragMoveEvent* event);
-    void contentsDropEvent(QDropEvent* event);
+    void dragEnterEvent(QDragEnterEvent* event);
+    void dragMoveEvent(QDragMoveEvent* event);
+    void dropEvent(QDropEvent* event);
 
 
     /**




More information about the umbrello-devel mailing list