From 35464957c6eef0cc61dbfbadc2bf80bc8351e8a0 Mon Sep 17 00:00:00 2001 From: Andrew Janke Date: Tue, 5 Mar 2019 06:23:05 -0500 Subject: [PATCH] Replace Q_WS_MAC with Q_OS_MACOS for Qt 5 compatibility The Q_WS_MAC Window Server macro is no longer defined in Qt 5: https://doc.qt.io/qt-5/macos-issues.html#compile-time-flags. --- example/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/main.cpp b/example/main.cpp index 07851ed..a27e9ec 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) mainWindow->setMenuBar(menuBar); QFont font = QApplication::font(); -#ifdef Q_WS_MAC +#ifdef Q_OS_MACOS font.setFamily("Monaco"); #elif defined(Q_WS_QWS) font.setFamily("fixed");