diff --git a/qwinwidget.cpp b/qwinwidget.cpp index f27c5f4..5868baa 100644 --- a/qwinwidget.cpp +++ b/qwinwidget.cpp @@ -314,7 +314,7 @@ void QWinWidget::onCloseButtonClicked() } } -bool QWinWidget::nativeEvent(const QByteArray &, void *message, long *result) +bool QWinWidget::nativeEvent(const QByteArray &, void *message, qintptr *result) { MSG *msg = (MSG *)message; diff --git a/qwinwidget.h b/qwinwidget.h index f79aa2b..f8962ce 100644 --- a/qwinwidget.h +++ b/qwinwidget.h @@ -83,7 +83,7 @@ public slots: bool focusNextPrevChild(bool next) override; void focusInEvent(QFocusEvent *e) override; - bool nativeEvent(const QByteArray &eventType, void *message, long *result) override; + bool nativeEvent(const QByteArray& eventType, void* message, qintptr* result) override; private: