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.
This commit is contained in:
committed by
Chih-Hsuan Yen
parent
456e356809
commit
35464957c6
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user