support both Qt5 and Qt6

This commit is contained in:
pls.153 2022-01-25 14:41:35 +01:00
parent 07f5fd05a0
commit 4440c06e70
6 changed files with 21 additions and 11 deletions

View file

@ -80,7 +80,11 @@ int main(int argc, char* argv[]) {
bool slime = false;
if (arguments.contains("-slime")
#if QT_VERSION < 0x060000
|| (arguments.indexOf(QRegularExpression::wildcardToRegularExpression("*start-swank*.lisp")) != -1)) {
#else
|| (arguments.indexOf(QRegularExpression::fromWildcard(QString("*start-swank*.lisp"))) != -1)) {
#endif
arguments.removeAll("-slime");
slime = true;
}