Skip to content

Commit

Permalink
Fix argument type for QAbstractNativeEventFilter::nativeEventFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Abestanis committed Oct 8, 2024
1 parent 12561dd commit b46d5b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/birdtrayeventfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


bool BirdtrayEventFilter::nativeEventFilter(
const QByteArray &eventType, void *message, long *result) {
const QByteArray &eventType, void *message, qintptr *result) {
if (eventType == "windows_generic_MSG") {
MSG* messageEvent = static_cast<MSG*>(message);
if (messageEvent->message == WM_CLOSE && QApplication::activeWindow() == nullptr) {
Expand Down
2 changes: 1 addition & 1 deletion src/birdtrayeventfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
class BirdtrayEventFilter: public QAbstractNativeEventFilter {
public:
bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;
bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result) override;
};


Expand Down

0 comments on commit b46d5b1

Please sign in to comment.