build: use Q_OS_MACOS in place of depricated Q_OS_MAC
This commit is contained in:
parent
2e6f4ddf8b
commit
cddf58684b
6 changed files with 11 additions and 11 deletions
|
|
@ -32,7 +32,7 @@
|
|||
#include <QLoggingCategory>
|
||||
#endif
|
||||
|
||||
#if !defined(Q_OS_MAC) && !defined(Q_OS_WIN)
|
||||
#if !defined(Q_OS_MACOS) && !defined(Q_OS_WIN)
|
||||
#include "platform/XDGPortalRegistry.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ int main(int argc, char *argv[])
|
|||
QLoggingCategory::setFilterRules(QStringLiteral("*.debug=true\nqt.*=false"));
|
||||
#endif
|
||||
|
||||
#if !defined(Q_OS_MAC) && !defined(Q_OS_WIN)
|
||||
#if !defined(Q_OS_MACOS) && !defined(Q_OS_WIN)
|
||||
if (QT_VERSION < QT_VERSION_CHECK(6, 10, 0))
|
||||
deskflow::platform::setAppId();
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <stdexcept>
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
#if defined(Q_OS_MACOS)
|
||||
#include <ApplicationServices/ApplicationServices.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include "platform/EiScreen.h"
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
#if defined(Q_OS_MACOS)
|
||||
#include "platform/OSXScreen.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ deskflow::Screen *ClientApp::createScreen()
|
|||
),
|
||||
getEvents()
|
||||
);
|
||||
#elif defined(Q_OS_MAC)
|
||||
#elif defined(Q_OS_MACOS)
|
||||
return new deskflow::Screen(
|
||||
new OSXScreen(getEvents(), false, Settings::value(Settings::Client::LanguageSync).toBool()), getEvents()
|
||||
);
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
#include "platform/EiScreen.h"
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
#if defined(Q_OS_MACOS)
|
||||
#include "platform/OSXScreen.h"
|
||||
#endif
|
||||
|
||||
|
|
@ -393,7 +393,7 @@ deskflow::Screen *ServerApp::createScreen()
|
|||
return new deskflow::Screen(
|
||||
new MSWindowsScreen(true, Settings::value(Settings::Core::UseHooks).toBool(), getEvents()), getEvents()
|
||||
);
|
||||
#elif defined(Q_OS_MAC)
|
||||
#elif defined(Q_OS_MACOS)
|
||||
return new deskflow::Screen(new OSXScreen(getEvents(), true), getEvents());
|
||||
#else
|
||||
if (deskflow::platform::isWayland()) {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
#if WINAPI_XWINDOWS
|
||||
#include <X11/XKBlib.h>
|
||||
#include <deskflow/unix/XkbLayoutsParser.h>
|
||||
#elif defined(Q_OS_MAC)
|
||||
#elif defined(Q_OS_MACOS)
|
||||
#include <Carbon/Carbon.h>
|
||||
#include <platform/OSXAutoTypes.h>
|
||||
#endif
|
||||
|
|
@ -46,7 +46,7 @@ std::vector<std::string> AppUtilUnix::getKeyboardLayoutList()
|
|||
#if WINAPI_XWINDOWS
|
||||
layoutLangCodes = XkbLayoutsParser::getXkbLanguageList();
|
||||
|
||||
#elif defined(Q_OS_MAC)
|
||||
#elif defined(Q_OS_MACOS)
|
||||
CFStringRef keys[] = {kTISPropertyInputSourceCategory};
|
||||
CFStringRef values[] = {kTISCategoryKeyboardInputSource};
|
||||
AutoCFDictionary dict(
|
||||
|
|
@ -142,7 +142,7 @@ std::string AppUtilUnix::getCurrentLanguageCode()
|
|||
|
||||
result = XkbLayoutsParser::convertLayoutToISO(result);
|
||||
|
||||
#elif defined(Q_OS_MAC)
|
||||
#elif defined(Q_OS_MACOS)
|
||||
AutoTISInputSourceRef source(nullptr, CFRelease);
|
||||
CFArrayRef layoutLanguages = nullptr;
|
||||
{
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ inline QFont fixedFont()
|
|||
QFont f = QFontDatabase::systemFont(QFontDatabase::FixedFont);
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_MAC)
|
||||
#if defined(Q_OS_MACOS)
|
||||
f.setPointSize(12);
|
||||
#endif
|
||||
return f;
|
||||
|
|
|
|||
Loading…
Reference in a new issue