Fix qt5 builds

This commit is contained in:
Luis Ángel San Martín 2023-06-08 22:48:24 +02:00
parent 181477783d
commit dfbe597a34

View File

@ -168,11 +168,13 @@ bool LibraryWindow::eventFilter(QObject *object, QEvent *event)
return QMainWindow::eventFilter(object, event);
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
auto keyCombination = keySequence[0];
if (keyCombination.keyboardModifiers() != Qt::NoModifier) {
return QMainWindow::eventFilter(object, event);
}
#endif
auto string = keySequence.toString();