Replace deprecated macro

Q_OS_MAC is deprecated and the replacement is Q_OS_MACOS.
This commit is contained in:
Chocobo1
2019-09-05 20:11:33 +08:00
parent ef8b37f7fa
commit 0d5b0b9542
37 changed files with 159 additions and 159 deletions

View File

@@ -56,9 +56,9 @@
#include <QSessionManager>
#include <QSharedMemory>
#endif // Q_OS_WIN
#ifdef Q_OS_MAC
#ifdef Q_OS_MACOS
#include <QFileOpenEvent>
#endif // Q_OS_MAC
#endif // Q_OS_MACOS
#endif
#include "base/bittorrent/session.h"
@@ -586,7 +586,7 @@ bool Application::isRunning()
}
#ifndef DISABLE_GUI
#ifdef Q_OS_MAC
#ifdef Q_OS_MACOS
bool Application::event(QEvent *ev)
{
if (ev->type() == QEvent::FileOpen) {
@@ -605,7 +605,7 @@ bool Application::event(QEvent *ev)
return BaseApplication::event(ev);
}
}
#endif // Q_OS_MAC
#endif // Q_OS_MACOS
#endif // DISABLE_GUI
void Application::initializeTranslation()

View File

@@ -105,7 +105,7 @@ public:
protected:
#ifndef DISABLE_GUI
#ifdef Q_OS_MAC
#ifdef Q_OS_MACOS
bool event(QEvent *) override;
#endif
#endif

View File

@@ -221,7 +221,7 @@ int main(int argc, char *argv[])
#endif
#endif // Q_OS_WIN
#if defined(Q_OS_MAC)
#if defined(Q_OS_MACOS)
// Since Apple made difficult for users to set PATH, we set here for convenience.
// Users are supposed to install Homebrew Python for search function.
// For more info see issue #5571.