qt: fix Qt6 windows build
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user