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

List:       kde-core-devel
Subject:    dirtree patch
From:       Antonio Larrosa <antlarr () arrakis ! es>
Date:       2000-10-09 17:38:53
[Download RAW message or body]

Hi,

If you drag a directory from the dirtree to any other place (an
iconview, for example) and the directory contains spaces or any
other encodable character, it doesn't work because they're encoded
twice. This patch fixes it.

Anyone wants to check it ?

Greetings,

--
Antonio Larrosa Jimenez
KDE core developer
antlarr@arrakis.es        larrosa@kde.org
http://www.arrakis.es/~rlarrosa
KDE - The development framework of the future, today.
["dirtree.diff" (text/plain)]

Index: konq_dirtree.cc
===================================================================
RCS file: /home/kde/kdebase/konqueror/dirtree/konq_dirtree.cc,v
retrieving revision 1.97
diff -u -r1.97 konq_dirtree.cc
--- konq_dirtree.cc	2000/09/29 10:50:00	1.97
+++ konq_dirtree.cc	2000/10/09 17:27:33
@@ -513,16 +513,17 @@
   if ( !item || !item->isSelectable() )
     return;
 
-  QStringList lst;
-  lst << static_cast<KonqDirTreeItem *>( item )->fileItem()->url().url();
+  QStrList lst;
+  lst.append(static_cast<KonqDirTreeItem *>( item )->fileItem()->url().url().local8Bit().data());
 
-  QUriDrag *drag = new QUriDrag( viewport() );
-  drag->setUnicodeUris( lst );
+  KonqDrag *drag = new KonqDrag( viewport() );
+  drag->setUris( lst );
   QPoint hotspot;
   hotspot.setX( item->pixmap( 0 )->width() / 2 );
   hotspot.setY( item->pixmap( 0 )->height() / 2 );
   drag->setPixmap( *(item->pixmap( 0 )), hotspot );
   drag->drag();
+
 }
 
 void KonqDirTree::contentsMouseReleaseEvent( QMouseEvent *e )



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

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