Material: fix Qt6 build failure

QRegExp has been replaced with QRegularExpression and isn't part of the base of Qt6 any more
This commit is contained in:
Ladislav Michl
2024-01-14 10:43:39 +01:00
parent ce1a43ed2c
commit a85db2c1d6
3 changed files with 8 additions and 13 deletions

View File

@@ -55,7 +55,7 @@ QString LibraryBase::getLocalPath(const QString& path) const
QString prefix = QString::fromStdString("/") + getName();
if (cleanPath.startsWith(prefix)) {
// Remove the library name from the path
filePath += cleanPath.rightRef(cleanPath.length() - prefix.length());
filePath += cleanPath.right(cleanPath.length() - prefix.length());
}
else {
filePath += cleanPath;