Only override MainWindow::nativeEvent for Windows
This commit is contained in:
@@ -117,10 +117,12 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
||||
void showEvent(QShowEvent *e) override;
|
||||
void closeEvent(QCloseEvent *e) override;
|
||||
void keyPressEvent(QKeyEvent *e) override;
|
||||
#ifdef Q_OS_WIN
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
bool nativeEvent(const QByteArray &eventType, void *message, qintptr *result) override;
|
||||
#else
|
||||
bool nativeEvent(const QByteArray &eventType, void *message, long *result) override;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// PlatformInterface
|
||||
|
||||
Reference in New Issue
Block a user