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

List:       kde-commits
Subject:    kdebase/kdeprint/kdeprintfax
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-05-13 15:33:37
[Download RAW message or body]

CVS commit by waba: 

s^QUriDrag^KURLDrag^


  M +6 -7      kdeprintfax.cpp   1.17


--- kdebase/kdeprint/kdeprintfax/kdeprintfax.cpp  #1.16:1.17
@@ -28,5 +28,4 @@
 #include <qlayout.h>
 #include <qpushbutton.h>
-#include <qdragobject.h>
 #include <qtextedit.h>
 #include <qdatetimeedit.h>
@@ -53,4 +52,5 @@
 #include <kopenwith.h>
 #include <kpushbutton.h>
+#include <kurldrag.h>
 
 KdeprintFax::KdeprintFax(QWidget *parent, const char *name)
@@ -269,15 +269,14 @@ void KdeprintFax::sendFax( bool quitAfte
 void KdeprintFax::dragEnterEvent(QDragEnterEvent *e)
 {
-        e->accept(QUriDrag::canDecode(e));
+        e->accept(KURLDrag::canDecode(e));
 }
 
 void KdeprintFax::dropEvent(QDropEvent *e)
 {
-        QStrList        l;
-        if (QUriDrag::decode(e, l))
+        KURL::List l;
+        if (KURLDrag::decode(e, l))
         {
-                QStrListIterator        it(l);
-                for (;it.current();++it)
-                        addURL(KURL(it.current()));
+                for (KURL::List::ConstIterator it = l.begin(); it != l.end(); ++it)
+                        addURL(*it);
         }
 }


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

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