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

List:       kde-commits
Subject:    KDE/kdeedu/kalzium/src
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2005-10-26 17:05:56
Message-ID: 1130346356.959121.28730.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 474530 by pino:

start to make the d'n'd working


 M  +6 -0      printwidget.cpp  
 M  +1 -0      printwidget.h  


--- trunk/KDE/kdeedu/kalzium/src/printwidget.cpp #474529:474530
@@ -63,6 +63,12 @@
 		event->acceptProposedAction();
 }
 
+void PrintListWidget::dragMoveEvent( QDragMoveEvent* event )
+{
+	if ( event->mimeData()->hasFormat("text/plain") )
+		event->acceptProposedAction();
+}
+
 void PrintListWidget::dropEvent( QDropEvent* event )
 {
 	kdDebug() << "hall" << endl;
--- trunk/KDE/kdeedu/kalzium/src/printwidget.h #474529:474530
@@ -58,6 +58,7 @@
 	protected:
 		virtual void dropEvent( QDropEvent* event );
                 virtual void dragEnterEvent( QDragEnterEvent* event );
+		virtual void dragMoveEvent( QDragMoveEvent* event );
 };
 
 #endif // PRINTWIDGET_H
[prev in list] [next in list] [prev in thread] [next in thread] 

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