Files
qt-creator/src/plugins/conan/conansettings.cpp
hjk ec7abcf98c Utils: Make FilePathAspect::setDefaultValue take a QString
This sets the unexpanded value, so going to a "cooked" FilePath can
at least theoretically break. On the user side it saves a
roundtrip in a few cases, but is more ugly when the input is already
a proper FilePath.

Change-Id: I8a7e8f6d46fcc34c96b55e41d656dca933fbef4e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-17 11:58:41 +00:00

31 lines
680 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 {
ConanSettings &settings()
{
static ConanSettings theSettings;
return theSettings;
}
ConanSettings::ConanSettings()
{
setSettingsGroup("ConanSettings");
setAutoApply(false);
conanFilePath.setSettingsKey("ConanFilePath");
conanFilePath.setExpectedKind(PathChooser::ExistingCommand);
conanFilePath.setDefaultValue(HostOsInfo::withExecutableSuffix("conan"));
readSettings();
}
} // Conan::Internal