qt: fix Qt6 windows build

This commit is contained in:
ts-korhonen
2022-03-09 08:16:47 +02:00
parent 130ed17b1c
commit 35d6c68488
2 changed files with 2 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ WindowsRawInputFilter::~WindowsRawInputFilter()
RegisterRawInputDevices(rid, 2, sizeof(rid[0]));
}
bool WindowsRawInputFilter::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
bool WindowsRawInputFilter::nativeEventFilter(const QByteArray &eventType, void *message, result_t *result)
{
if (eventType == "windows_generic_MSG")
{

View File

@@ -40,13 +40,12 @@
#include <memory>
#if QT_VERSION_MAJOR >= 6
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#define result_t qintptr
#else
#define result_t long
#endif
class WindowsRawInputFilter : public QObject, public QAbstractNativeEventFilter
{
Q_OBJECT