forked from qt-creator/qt-creator
Generally, aspects should use fromMap/toMap, but some older pages
use {from,to}Settings with always the same ICore::settings().
To make that less intrusive on the user code side, make that globally
implicit.
Task-number: QTCREATORBUG-29167
Change-Id: I29a8e23a31eb8061bb143e93931a07c6741eb7f9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
31 lines
722 B
C++
31 lines
722 B
C++
// Copyright (C) 2021 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#include "conansettings.h"
|
|
|
|
#include <utils/hostosinfo.h>
|
|
|
|
using namespace Utils;
|
|
|
|
namespace Conan::Internal {
|
|
|
|
static ConanSettings *theSettings;
|
|
|
|
ConanSettings &settings() { return *theSettings; }
|
|
|
|
ConanSettings::ConanSettings()
|
|
{
|
|
theSettings = this;
|
|
|
|
setSettingsGroup("ConanSettings");
|
|
setAutoApply(false);
|
|
|
|
conanFilePath.setSettingsKey("ConanFilePath");
|
|
conanFilePath.setExpectedKind(PathChooser::ExistingCommand);
|
|
conanFilePath.setDefaultValue(FilePath::fromString(HostOsInfo::withExecutableSuffix("conan")));
|
|
|
|
readSettings();
|
|
}
|
|
|
|
} // Conan::Internal
|