rename file
Aleix Pol
aleixpol at kde.org
Sun Nov 15 00:24:45 UTC 2009
hi,
we discussed with milian about moving the default renameFile/Folder to the
default iprojectfilemanager implementation.
the code would look like that:
bool IProjectFileManager::renameFile(ProjectFileItem* it, const KUrl&
newUrl)
{
KIO::CopyJob* job=KIO::move(it->url(), newUrl);
bool ret=KIO::NetAccess::synchronousRun(job, 0);
if(ret) {
it->project()->removeFromFileSet(IndexedString(it->url()));
it->setText(newUrl.fileName(KUrl::IgnoreTrailingSlash));
it->setUrl(newUrl);
it->project()->addToFileSet(IndexedString(it->url()));
}
return ret;
}
The problem is that if we use it, we have to make kdevprojectinterface to
link against language.
Do we want that?
thanks,
Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20091115/5ca876bf/attachment.html>
More information about the KDevelop-devel
mailing list