--- a/src/qtgui/rclhelp.cpp
+++ b/src/qtgui/rclhelp.cpp
@@ -22,11 +22,6 @@
#include <qevent.h>
#include <qwidget.h>
-#if (QT_VERSION < 0x040000)
-#define Q34EVOVERRIDE QEvent::AccelOverride
-#else
-#define Q34EVOVERRIDE QEvent::ShortcutOverride
-#endif
#include "recoll.h"
#include "rclhelp.h"
@@ -48,7 +43,8 @@
bool HelpClient::eventFilter(QObject *obj, QEvent *event)
{
static time_t last_start;
- if (event->type() == QEvent::KeyPress || event->type() == Q34EVOVERRIDE) {
+ if (event->type() == QEvent::KeyPress ||
+ event->type() == QEvent::ShortcutOverride) {
// LOGDEB(("HelpClient::eventFilter: %d\n", (int)event->type()));
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
if (ke->key() == Qt::Key_F1 || ke->key() == Qt::Key_Help) {
@@ -78,4 +74,3 @@
}
return false;
}
-