Fix wrong inport of PyQt5 version (#1324)

This commit is contained in:
Veronica Berglyd Olsen
2023-01-29 02:13:32 +01:00
parent e2f7e77ec2
commit 0c75a53e57
5 changed files with 14 additions and 27 deletions
+1 -1
View File
@@ -2512,7 +2512,7 @@ class GuiDocEditSearch(QFrame):
# Using the Unicode-capable QRegularExpression class was
# only added in Qt 5.13. Otherwise, 5.3 and up supports
# only the QRegExp class.
if self.mainConf.verQtValue >= 51300:
if self.mainConf.verQtValue >= 0x050d00:
rxOpt = QRegularExpression.UseUnicodePropertiesOption
if not self.isCaseSense:
rxOpt |= QRegularExpression.CaseInsensitiveOption