We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3491a3 commit e6a89a9Copy full SHA for e6a89a9
src/qt/tonalutils.cpp
@@ -38,7 +38,8 @@ bool TonalUtils::Supported()
38
return false;
39
}
40
41
-static QRegExpValidator tv(QRegExp("-?(?:[\\d\\xe9d9-\\xe9df]+\\.?|[\\d\\xe9d9-\\xe9df]*\\.[\\d\\xe9d9-\\xe9df]*)"), nullptr);
+#define RE_TONAL_DIGIT "[\\d\\xe9d9-\\xe9df]"
42
+static QRegExpValidator tv(QRegExp("-?(?:" RE_TONAL_DIGIT "+\\.?|" RE_TONAL_DIGIT "*\\." RE_TONAL_DIGIT "*)"), nullptr);
43
44
QValidator::State TonalUtils::validate(QString&input, int&pos)
45
{
0 commit comments