mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
* 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:
parent
18389fb6ee
commit
b07d4d3e60
@ -262,13 +262,15 @@ bool FileName::isReadableDirectory() const
|
|||||||
|
|
||||||
string FileName::onlyFileName() const
|
string FileName::onlyFileName() const
|
||||||
{
|
{
|
||||||
return support::onlyFilename(absFilename());
|
return fromqstr(d->fi.fileName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FileName FileName::onlyPath() const
|
FileName FileName::onlyPath() const
|
||||||
{
|
{
|
||||||
return FileName(support::onlyPath(absFilename()));
|
FileName path;
|
||||||
|
path.d->fi.setFile(d->fi.filePath());
|
||||||
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user