UI: Fix build with Qt 6.0

This commit is contained in:
Nodir Temirkhodjaev 2019-10-12 12:15:28 +05:00
parent f1da128f89
commit 9cb853cdb1
3 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@
#include <QInputDialog>
#include <QMenu>
#include <QMessageBox>
#include <QMouseEvent>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QSystemTrayIcon>

View File

@ -86,7 +86,7 @@ int NativeEventFilter::getKeyId(quint32 nativeMod, quint32 nativeKey) const
}
bool NativeEventFilter::nativeEventFilter(const QByteArray &eventType,
void *message, long *result)
void *message, qintptr *result)
{
Q_UNUSED(eventType)
Q_UNUSED(result)

View File

@ -17,7 +17,7 @@ public:
CLASS_DELETE_COPY_MOVE(NativeEventFilter)
bool nativeEventFilter(const QByteArray &eventType,
void *message, long *result) override;
void *message, qintptr *result) override;
bool registerHotKey(int hotKeyId,
Qt::Key keyCode,