Skip to content

Commit 061247e

Browse files
Fixed Linux build issue
1 parent a90eff1 commit 061247e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QtAdvancedStylesheet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ void QtAdvancedStylesheetPrivate::replaceStylesheetVariables(QString& Content)
406406
QString MatchString = match.captured();
407407
// Use only the value inside of the brackets {{ }} without the brackets
408408
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
409-
auto TemplateVariable = QStringView(MatchString).mid(2, MatchString.size() - 4);
409+
auto TemplateVariable = MatchString.midRef(2, MatchString.size() - 4);
410410
#else
411411
auto TemplateVariable = QStringView(MatchString).sliced(2, MatchString.size() - 4);
412412
#endif

0 commit comments

Comments
 (0)