Skip to content

Commit 8cc5a7c

Browse files
committed
Fix build with Qt 5 after f0329ed
1 parent 6b81e7b commit 8cc5a7c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

syncthingconnector/syncthingprocess.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,11 @@ void SyncthingProcess::handleLeftoverProcesses()
724724
#endif
725725
}
726726

727+
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
727728
bool SyncthingProcess::nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result)
729+
#else
730+
bool SyncthingProcess::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
731+
#endif
728732
{
729733
Q_UNUSED(result)
730734
#ifdef Q_OS_WINDOWS

syncthingconnector/syncthingprocess.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ private Q_SLOTS:
116116
#endif
117117

118118
private:
119+
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
119120
bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result) override;
121+
#else
122+
bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;
123+
#endif
120124

121125
QString m_program;
122126
QStringList m_arguments;

0 commit comments

Comments
 (0)