forked from qt-creator/qt-creator
Python: check for pyside in qt installation
Fixes: PYSIDE-2153 Change-Id: I91ec24eb6a71d4f29edaf7a707b3c49a4deb725a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1788,6 +1788,13 @@ FilePath FilePath::stringAppended(const QString &str) const
|
||||
return FilePath::fromString(toString() + str);
|
||||
}
|
||||
|
||||
std::optional<FilePath> FilePath::tailRemoved(const QString &str) const
|
||||
{
|
||||
if (pathView().endsWith(str))
|
||||
return withNewPath(pathView().chopped(str.size()).toString());
|
||||
return {};
|
||||
}
|
||||
|
||||
QDateTime FilePath::lastModified() const
|
||||
{
|
||||
return fileAccess()->lastModified(*this);
|
||||
|
||||
Reference in New Issue
Block a user