mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Fix qt5 builds
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user