forked from qt-creator/qt-creator
Main: Replace macro usage with HostOsInfo
Change-Id: I6ac6cbe39ba6552b30dc109a2310bff8c16b84e0 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
ffe52196c3
commit
b88de51cbc
@@ -222,9 +222,8 @@ static inline QStringList getPluginPaths()
|
|||||||
// "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux
|
// "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux
|
||||||
// "~/Library/Application Support/QtProject/Qt Creator" on Mac
|
// "~/Library/Application Support/QtProject/Qt Creator" on Mac
|
||||||
pluginPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
|
pluginPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
|
||||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
|
if (Utils::HostOsInfo::isAnyUnixHost() && !Utils::HostOsInfo::isMacHost())
|
||||||
pluginPath += QLatin1String("/data");
|
pluginPath += QLatin1String("/data");
|
||||||
#endif
|
|
||||||
pluginPath += QLatin1Char('/')
|
pluginPath += QLatin1Char('/')
|
||||||
+ QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR)
|
+ QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR)
|
||||||
+ QLatin1Char('/');
|
+ QLatin1Char('/');
|
||||||
|
|||||||
Reference in New Issue
Block a user