Skip to content

Commit

Permalink
Fixed Linux build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
githubuser0xFFFF committed Aug 12, 2022
1 parent a90eff1 commit 061247e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QtAdvancedStylesheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 061247e

Please sign in to comment.