mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Replace deprecated macro
Q_OS_MAC is deprecated and the replacement is Q_OS_MACOS.
This commit is contained in:
parent
ef8b37f7fa
commit
0d5b0b9542
37 changed files with 159 additions and 159 deletions
|
@ -73,7 +73,7 @@ QString Private::DefaultProfile::configLocation() const
|
|||
|
||||
QString Private::DefaultProfile::dataLocation() const
|
||||
{
|
||||
#if defined(Q_OS_WIN) || defined (Q_OS_MAC)
|
||||
#if defined(Q_OS_WIN) || defined (Q_OS_MACOS)
|
||||
return locationWithConfigurationName(QStandardPaths::AppLocalDataLocation);
|
||||
#else
|
||||
// on Linux gods know why qBittorrent creates 'data' subdirectory in ~/.local/share/
|
||||
|
@ -89,7 +89,7 @@ QString Private::DefaultProfile::downloadLocation() const
|
|||
|
||||
SettingsPtr Private::DefaultProfile::applicationSettings(const QString &name) const
|
||||
{
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MACOS)
|
||||
return SettingsPtr(new QSettings(QSettings::IniFormat, QSettings::UserScope, profileName(), name));
|
||||
#else
|
||||
return SettingsPtr(new QSettings(profileName(), name));
|
||||
|
@ -135,7 +135,7 @@ QString Private::CustomProfile::downloadLocation() const
|
|||
SettingsPtr Private::CustomProfile::applicationSettings(const QString &name) const
|
||||
{
|
||||
// here we force QSettings::IniFormat format always because we need it to be portable across platforms
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MACOS)
|
||||
constexpr const char *CONF_FILE_EXTENSION = ".ini";
|
||||
#else
|
||||
constexpr const char *CONF_FILE_EXTENSION = ".conf";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue