mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Don't use "Qt Mac Extras" module
"Qt Mac Extras" module is removed in Qt6.
This commit is contained in:
parent
d82a1d7198
commit
35032d7eed
6 changed files with 32 additions and 20 deletions
|
@ -48,10 +48,6 @@
|
|||
#include <QtGlobal>
|
||||
#include <QTimer>
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
#include <QtMac>
|
||||
#include <QtMacExtras>
|
||||
#endif
|
||||
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)) && defined(QT_DBUS_LIB)
|
||||
#include <QDBusConnection>
|
||||
#include "qtnotify/notifications.h"
|
||||
|
@ -1612,12 +1608,12 @@ void MainWindow::reloadSessionStats()
|
|||
#ifdef Q_OS_MACOS
|
||||
if (status.payloadDownloadRate > 0)
|
||||
{
|
||||
QtMac::setBadgeLabelText(tr("%1/s", "s is a shorthand for seconds")
|
||||
MacUtils::setBadgeLabelText(tr("%1/s", "s is a shorthand for seconds")
|
||||
.arg(Utils::Misc::friendlyUnit(status.payloadDownloadRate)));
|
||||
}
|
||||
else if (!QtMac::badgeLabelText().isEmpty())
|
||||
else if (!MacUtils::badgeLabelText().isEmpty())
|
||||
{
|
||||
QtMac::setBadgeLabelText("");
|
||||
MacUtils::setBadgeLabelText("");
|
||||
}
|
||||
#else
|
||||
if (m_systrayIcon)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue