On Wednesday 02 February 2011, Kevin Krammer wrote:
> On Wednesday, 2011-02-02, dmitry chernov wrote:
> > On Wed, Feb 2, 2011 at 5:33 PM, Kevin Krammer <[email protected]> 
wrote:
> > > On Wednesday, 2011-02-02, dmitry chernov wrote:
> > > > In dolphin, when you move file to directory where a file with such
> > > > name already exists, there appears a dialog titled FileAlready
> > > > Exists, wuth choces : Rename, Overwrite, Cancel. How I can use this
> > > > dialog in my application? ( What is the class, which header to
> > > > include? ). Thanks in advance.
> > > 
> > > What is your use case?
> > > 
> > > Wouldn't it be easier to just use KIO::file_move()?
> > > 
> > > Cheers,
> > > Kevin
> > > 
> > > --
> > > Kevin Krammer, KDE developer, xdg-utils developer
> > > KDE user support, developer mentoring
> > > 
> > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > > 
> > > unsubscribe <<
> > > 
> > > Moving of images, I'd like such a fialog. Simply using KIO::file_move()
> > 
> > simply returns error if a file already exists.
> 
> I see, I thought the job would do that internally.

KIO::move can move anything (files and dirs), and indeed does this internally
(shows the rename dialog).

KIO::file_move is more low-level and just moves one file, no dialogs.

-- 
David Faure, [email protected], http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to