Merge pull request #2209 from ts-korhonen/fix-win-qt6

qt: fix Qt6 windows build
This commit is contained in:
David Hrdlička
2022-03-09 13:43:34 +01:00
committed by GitHub
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