mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 08:43:08 -07:00
Put macOS specific functions to MacUtils namespace
This commit is contained in:
parent
d57bd62add
commit
d7fa5b6b6b
5 changed files with 71 additions and 65 deletions
|
@ -1298,7 +1298,7 @@ static bool dockClickHandler(id self, SEL cmd, ...)
|
|||
void MainWindow::setupDockClickHandler()
|
||||
{
|
||||
dockMainWindowHandle = this;
|
||||
overrideDockClickHandler(dockClickHandler);
|
||||
MacUtils::overrideDockClickHandler(dockClickHandler);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -1557,7 +1557,7 @@ void MainWindow::showNotificationBaloon(QString title, QString msg) const
|
|||
if (!reply.isError())
|
||||
return;
|
||||
#elif defined(Q_OS_MAC)
|
||||
displayNotification(title, msg);
|
||||
MacUtils::displayNotification(title, msg);
|
||||
#else
|
||||
if (m_systrayIcon && QSystemTrayIcon::supportsMessages())
|
||||
m_systrayIcon->showMessage(title, msg, QSystemTrayIcon::Information, TIME_TRAY_BALLOON);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue