* FileName::onlyFileName(): use QFileInfo method.

* FileName::onlyPath(): use QFileInfo method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22192 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-17 17:09:30 +00:00
parent 18389fb6ee
commit b07d4d3e60

View File

@ -262,13 +262,15 @@ bool FileName::isReadableDirectory() const
string FileName::onlyFileName() const
{
return support::onlyFilename(absFilename());
return fromqstr(d->fi.fileName());
}
FileName FileName::onlyPath() const
{
return FileName(support::onlyPath(absFilename()));
FileName path;
path.d->fi.setFile(d->fi.filePath());
return path;
}