fix windows compile

This commit is contained in:
孙羽
2026-05-27 21:34:09 +08:00
parent 6b94ceea14
commit 116a4b8368
8 changed files with 48 additions and 44 deletions
+5
View File
@@ -498,8 +498,13 @@ void MainWindow::closeEvent(QCloseEvent *e)
}
#ifdef Q_OS_WINDOWS
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
bool MainWindow::nativeEvent(const QByteArray &eventType, void *message,
qintptr *result)
#else
bool MainWindow::nativeEvent(const QByteArray &eventType, void *message,
long *result)
#endif
{
if (static_cast<MSG *>(message)->message == taskbar_btn_id_) {
// Attempt to create taskbar button progress handle
+6 -1
View File
@@ -109,8 +109,13 @@ protected:
virtual void closeEvent(QCloseEvent *e) override;
#ifdef Q_OS_WINDOWS
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
virtual bool nativeEvent(const QByteArray &eventType, void *message,
long *result);
qintptr *result) override;
#else
virtual bool nativeEvent(const QByteArray &eventType, void *message,
long *result) override;
#endif
#endif
private: