mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Replace deprecated qt_mac_set_dock_menu()
This commit is contained in:
@@ -107,10 +107,6 @@
|
||||
#include "programupdater.h"
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
void qt_mac_set_dock_menu(QMenu *menu);
|
||||
#endif
|
||||
|
||||
#define TIME_TRAY_BALLOON 5000
|
||||
#define PREVENT_SUSPEND_INTERVAL 60000
|
||||
|
||||
@@ -469,7 +465,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
#endif
|
||||
#ifdef Q_OS_MAC
|
||||
setupDockClickHandler();
|
||||
qt_mac_set_dock_menu(trayIconMenu());
|
||||
trayIconMenu()->setAsDockMenu();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1815,7 +1811,6 @@ void MainWindow::on_actionDownloadFromURL_triggered()
|
||||
}
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
|
||||
|
||||
void MainWindow::handleUpdateCheckFinished(bool updateAvailable, QString newVersion, bool invokedByUser)
|
||||
{
|
||||
QMessageBox::StandardButton answer = QMessageBox::Yes;
|
||||
|
||||
Reference in New Issue
Block a user