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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user