[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Patch, noatun: filenames
From: Charles Samuels <charles () kde ! org>
Date: 2001-01-26 18:12:22
[Download RAW message or body]
The playlist has troubles with high-ascii characters, this fixes that.
Not that I'm expecting anyone to complain on this patch.
--
Charles Samuels <charles@kde.org>
K Desktop Environment
// vim: ts=4 noet
["view.cpp.diff" (text/x-c++)]
? gdb-transcript
? view.diff.cpp
? view.cpp.diff
Index: view.cpp
===================================================================
RCS file: /home/kde/kdemultimedia/noatun/noatun/modules/splitplaylist/view.cpp,v
retrieving revision 1.40
diff -u -r1.40 view.cpp
--- view.cpp 2001/01/24 21:04:50 1.40
+++ view.cpp 2001/01/26 18:09:41
@@ -20,6 +20,7 @@
#include <kio/netaccess.h>
#include <ksimpleconfig.h>
#include <kstddirs.h>
+#include <kurldrag.h>
#include "playlist.h"
#include "view.h"
@@ -108,16 +109,16 @@
void List::dropEvent(QDropEvent *event, QListViewItem *after)
{
- QStrList textlist;
- if (!QUriDrag::decode(event, textlist)) return;
+ KURL::List textlist;
+ if (!KURLDrag::decode(event, textlist)) return;
- for (char *i=textlist.first(); i != 0; i=textlist.next())
+ for (KURL::List::Iterator i=textlist.begin(); i != textlist.end(); ++i)
{
// TODO: there must be a better way.. this isn't windows
- if (QString(i).right(4)==".m3u")
- after=openGlobal(KURL(i), after);
+ if ((*i).path().right(4)==".m3u")
+ after=openGlobal(*i, after);
else
- after=new SafeListViewItem(this, after,KURL(i));
+ after=new SafeListViewItem(this, after, *i);
}
emit modified();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic