mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-28 22:51:03 -07:00
qt 5.15 compatibility (#4027)
This commit is contained in:
@@ -12,7 +12,11 @@ SettingsCache::SettingsCache(const QString &fileName, QSettings::Format format,
|
||||
isPortableBuild = QFile::exists(qApp->applicationDirPath() + "/portable.dat");
|
||||
|
||||
QStringList disallowedRegExpStr =
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
|
||||
value("users/disallowedregexp", "").toString().split(",", Qt::SkipEmptyParts);
|
||||
#else
|
||||
value("users/disallowedregexp", "").toString().split(",", QString::SkipEmptyParts);
|
||||
#endif
|
||||
disallowedRegExpStr.removeDuplicates();
|
||||
for (const QString ®ExpStr : disallowedRegExpStr) {
|
||||
disallowedRegExp.append(QRegExp(regExpStr));
|
||||
|
||||
Reference in New Issue
Block a user