mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fix qt5 builds
This commit is contained in:
parent
181477783d
commit
dfbe597a34
@ -168,11 +168,13 @@ bool LibraryWindow::eventFilter(QObject *object, QEvent *event)
|
|||||||
return QMainWindow::eventFilter(object, event);
|
return QMainWindow::eventFilter(object, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||||
auto keyCombination = keySequence[0];
|
auto keyCombination = keySequence[0];
|
||||||
|
|
||||||
if (keyCombination.keyboardModifiers() != Qt::NoModifier) {
|
if (keyCombination.keyboardModifiers() != Qt::NoModifier) {
|
||||||
return QMainWindow::eventFilter(object, event);
|
return QMainWindow::eventFilter(object, event);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
auto string = keySequence.toString();
|
auto string = keySequence.toString();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user