mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Merge pull request #14783 from glassez/macutils
Don't use "Qt Mac Extras" module
This commit is contained in:
commit
e0d17e496a
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"
|
||||
|
@ -1627,12 +1623,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