diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index c9ee60f0..00690e5d 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -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();