forked from qt-creator/qt-creator
Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "filefilteritems.h"
|
||||
|
||||
#include <utils/filesystemwatcher.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QDebug>
|
||||
@@ -179,7 +180,7 @@ bool FileFilterBaseItem::matchesFile(const QString &filePath) const
|
||||
return true;
|
||||
}
|
||||
|
||||
const QString &fileName = QFileInfo(filePath).fileName();
|
||||
const QString &fileName = Utils::FileName::fromString(filePath).fileName();
|
||||
|
||||
if (!fileMatches(fileName))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user