From 679351d400004be69f5a4533431205672eddd713 Mon Sep 17 00:00:00 2001 From: Tony Mountifield Date: Mon, 29 Jan 2024 17:42:53 +0000 Subject: [PATCH] Replace deprecated Q_OS_MACX with Q_OS_MACOS --- src/client.h | 2 +- src/clientdlg.cpp | 2 +- src/clientdlg.h | 2 +- src/main.cpp | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/client.h b/src/client.h index 1466078fac..1fc33d8430 100644 --- a/src/client.h +++ b/src/client.h @@ -44,7 +44,7 @@ #if defined( _WIN32 ) && !defined( JACK_ON_WINDOWS ) # include "sound/asio/sound.h" #else -# if ( defined( Q_OS_MACX ) ) && !defined( JACK_REPLACES_COREAUDIO ) +# if ( defined( Q_OS_MACOS ) ) && !defined( JACK_REPLACES_COREAUDIO ) # include "sound/coreaudio-mac/sound.h" # else # if defined( Q_OS_IOS ) diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp index e88134598a..99b9fa6433 100644 --- a/src/clientdlg.cpp +++ b/src/clientdlg.cpp @@ -943,7 +943,7 @@ void CClientDlg::SetMyWindowTitle ( const int iNumClients ) setWindowTitle ( strWinTitle ); -#if defined( Q_OS_MACX ) +#if defined( Q_OS_MACOS ) // for MacOS only we show the number of connected clients as a // badge label text if more than one user is connected if ( iNumClients > 1 ) diff --git a/src/clientdlg.h b/src/clientdlg.h index 617656c972..9737bcd2ca 100644 --- a/src/clientdlg.h +++ b/src/clientdlg.h @@ -53,7 +53,7 @@ #include "connectdlg.h" #include "analyzerconsole.h" #include "ui_clientdlgbase.h" -#if defined( Q_OS_MACX ) +#if defined( Q_OS_MACOS ) # include "mac/badgelabel.h" #endif diff --git a/src/main.cpp b/src/main.cpp index 362dc1fdf8..42d17a8dea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -42,7 +42,7 @@ #ifdef ANDROID # include #endif -#if defined( Q_OS_MACX ) +#if defined( Q_OS_MACOS ) # include "mac/activity.h" extern void qt_set_sequence_auto_mnemonic ( bool bEnable ); #endif @@ -60,7 +60,7 @@ extern void qt_set_sequence_auto_mnemonic ( bool bEnable ); int main ( int argc, char** argv ) { -#if defined( Q_OS_MACX ) +#if defined( Q_OS_MACOS ) // Mnemonic keys are default disabled in Qt for MacOS. The following function enables them. // Qt will not show these with underline characters in the GUI on MacOS. (#1873) qt_set_sequence_auto_mnemonic ( true ); @@ -74,7 +74,7 @@ int main ( int argc, char** argv ) // initialize all flags and string which might be changed by command line // arguments -#if ( defined( SERVER_BUNDLE ) && defined( Q_OS_MACX ) ) || defined( SERVER_ONLY ) +#if ( defined( SERVER_BUNDLE ) && defined( Q_OS_MACOS ) ) || defined( SERVER_ONLY ) // if we are on MacOS and we are building a server bundle or requested build with serveronly, start Jamulus in server mode bool bIsClient = false; qInfo() << "- Starting in server mode by default (due to compile time option)"; @@ -585,7 +585,7 @@ int main ( int argc, char** argv ) // clicking on the Mac application bundle, the actual application // is called with weird command line args -> do not exit on these -#if !( defined( Q_OS_MACX ) ) +#if !( defined( Q_OS_MACOS ) ) exit ( 1 ); #endif } @@ -850,7 +850,7 @@ int main ( int argc, char** argv ) pApp->addLibraryPath ( QString ( ApplDir.absolutePath() ) ); #endif -#if defined( Q_OS_MACX ) +#if defined( Q_OS_MACOS ) // On OSX we need to declare an activity to ensure the process doesn't get // throttled by OS level Nap, Sleep, and Thread Priority systems. CActivity activity; @@ -1065,7 +1065,7 @@ int main ( int argc, char** argv ) } } -#if defined( Q_OS_MACX ) +#if defined( Q_OS_MACOS ) activity.EndActivity(); #endif