[PATCH] kdeaddons/renamedlgplugins/audio/
André Wöbbeking
Woebbeking at onlinehome.de
Mon Dec 15 21:29:20 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 15 December 2003 22:09, David Faure wrote:
> On Monday 15 December 2003 20:15, André Wöbbeking wrote:
> > > I'm not very aware of the preview framework there - but if it
> > > passes a "QString filename" around, I assume that's the real
> > > filesystem filename, so audio_plugin.cpp should use
> > > KIO::decodeFileName() before displaying it, to decode %2F into
> > > '/'.
> >
> > It all comes from KIO::RenameDlg. It used QString instead of KUrl
> > (anyone knows why?). The jobs using this dialog convert there urls
> > with prettyURL() to QStrings.
>
> The whole URL? Hmm, then those QStrings should be either displayed as
> is or passed back to KURL for parsing....
> The only way to extract the user-visible filename is to get it from
> KIO::decodeFileName( url.fileName() ).
- From CopyJob::slotResultConflictCopyingFiles:
res = Observer::self()->open_RenameDlg( this, m_conflictError == ERR_FILE_ALREADY_EXIST ?
i18n("File Already Exists") : i18n("Already Exists as Folder"),
(*it).uSource.prettyURL(0, KURL::StripFileProtocol),
(*it).uDest.prettyURL(0, KURL::StripFileProtocol),
mode, newPath,
(*it).size, destsize,
(*it).ctime, destctime,
(*it).mtime, destmtime );
I think, this should be changed to KUrl, maybe via an additional RenameDlg ctor
and KDE_DEPRECATED for the old ctor.
André
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/3ie1Gcp/AjG8ndYRAjqzAJ9iu6bEu9LxNaHj4s4zJmpN7GkJmACcCESO
rKDLYHOUxyro8CnoKsz3wmw=
=G/T7
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list