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:
David Schulz
2023-08-15 15:37:51 +02:00
parent a137f2b23d
commit be54b3db2f
9 changed files with 97 additions and 22 deletions

View File

@@ -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);