Skip to content

Commit

Permalink
Fix build with Qt 5 after f0329ed
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Oct 16, 2024
1 parent 6b81e7b commit 8cc5a7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syncthingconnector/syncthingprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions syncthingconnector/syncthingprocess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8cc5a7c

Please sign in to comment.