diff --git a/syncthingconnector/syncthingprocess.cpp b/syncthingconnector/syncthingprocess.cpp index 9feaecd6..12405f13 100644 --- a/syncthingconnector/syncthingprocess.cpp +++ b/syncthingconnector/syncthingprocess.cpp @@ -724,7 +724,11 @@ void SyncthingProcess::handleLeftoverProcesses() #endif } +#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) bool SyncthingProcess::nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result) +#else +bool SyncthingProcess::nativeEventFilter(const QByteArray &eventType, void *message, long *result) +#endif { Q_UNUSED(result) #ifdef Q_OS_WINDOWS diff --git a/syncthingconnector/syncthingprocess.h b/syncthingconnector/syncthingprocess.h index cdbd3244..c90ed2be 100644 --- a/syncthingconnector/syncthingprocess.h +++ b/syncthingconnector/syncthingprocess.h @@ -116,7 +116,11 @@ private Q_SLOTS: #endif private: +#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result) override; +#else + bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override; +#endif QString m_program; QStringList m_arguments;