From 061247e40bb8194f86477a83b48da680ce8f252c Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 12 Aug 2022 11:07:59 +0200 Subject: [PATCH] Fixed Linux build issue --- src/QtAdvancedStylesheet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QtAdvancedStylesheet.cpp b/src/QtAdvancedStylesheet.cpp index 4752cc2..4e3c67c 100644 --- a/src/QtAdvancedStylesheet.cpp +++ b/src/QtAdvancedStylesheet.cpp @@ -406,7 +406,7 @@ void QtAdvancedStylesheetPrivate::replaceStylesheetVariables(QString& Content) QString MatchString = match.captured(); // Use only the value inside of the brackets {{ }} without the brackets #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) - auto TemplateVariable = QStringView(MatchString).mid(2, MatchString.size() - 4); + auto TemplateVariable = MatchString.midRef(2, MatchString.size() - 4); #else auto TemplateVariable = QStringView(MatchString).sliced(2, MatchString.size() - 4); #endif