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

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/widgets
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2007-02-27 1:02:16
Message-ID: 1172538136.814241.17576.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 637611 by pino:

convert the Q3TextDrag usage to the QMimeData API


 M  +4 -4      draglistbox.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/widgets/draglistbox.cpp #637610:637611
@@ -15,9 +15,8 @@
  *                                                                         *
  ***************************************************************************/
 
-#include <q3dragobject.h>
-//Added by qt3to4:
 #include <QDragEnterEvent>
+#include <QMimeData>
 #include <QMouseEvent>
 #include <QDropEvent>
 #include <klocale.h>
@@ -38,8 +37,8 @@
 
 void DragListBox::dragEnterEvent( QDragEnterEvent *evt )
 {
-	if ( Q3TextDrag::canDecode( evt ) )
-		evt->accept();
+	if ( evt->mimeData()->hasText() )
+		evt->acceptProposedAction();
 }
 
 bool DragListBox::contains( const QString &s ) const {
@@ -72,6 +71,7 @@
 			delete fp->takeItem( fp->currentRow() );
 		}
 	}
+	evt->acceptProposedAction();
 }
 
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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