Skip to content

Commit 877a491

Browse files
UdjinM6xdustinface
authored andcommitted
Format osStyleExp to make it a bit easier to see groups
1 parent 2b568f2 commit 877a491

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/qt/guiutil.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,12 @@ void loadStyleSheet(QWidget* widget, bool fDebugWidget)
10701070
QString strStyle = QLatin1String(qFile.readAll());
10711071
// Process all <os=...></os> groups in the stylesheet first
10721072
QRegularExpressionMatch osStyleMatch;
1073-
QRegularExpression osStyleExp("^(<os=(?:'|\").+(?:'|\")>)((?:.|\n)+?)(</os>?)$");
1073+
QRegularExpression osStyleExp(
1074+
"^"
1075+
"(<os=(?:'|\").+(?:'|\")>)" // group 1
1076+
"((?:.|\n)+?)" // group 2
1077+
"(</os>?)" // group 3
1078+
"$");
10741079
osStyleExp.setPatternOptions(QRegularExpression::MultilineOption);
10751080
QRegularExpressionMatchIterator it = osStyleExp.globalMatch(strStyle);
10761081

0 commit comments

Comments
 (0)