Don't use "Qt Mac Extras" module

"Qt Mac Extras" module is removed in Qt6.
This commit is contained in:
Vladimir Golovnev (Glassez) 2021-04-12 13:15:30 +03:00 committed by Vladimir Golovnev (glassez)
parent d82a1d7198
commit 35032d7eed
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
6 changed files with 32 additions and 20 deletions

View file

@ -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)