forked from qt-creator/qt-creator
Utils: Rework aspect implementation
This avoids some repetition and could be a step towards having type storage in (or rather accessible from) the base, so we can have aspects for more complex data (treemodels...) that are not easily converted to QVariant. Change-Id: I9797b3d5646195705212db1830d2b415291ac651 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -2114,12 +2114,10 @@ QString CMakeBuildSystem::cmakeBuildType() const
|
||||
void CMakeBuildSystem::setCMakeBuildType(const QString &cmakeBuildType, bool quiet)
|
||||
{
|
||||
auto aspect = buildConfiguration()->aspect<BuildTypeAspect>();
|
||||
if (quiet) {
|
||||
if (quiet)
|
||||
aspect->setValueQuietly(cmakeBuildType);
|
||||
aspect->update();
|
||||
} else {
|
||||
else
|
||||
aspect->setValue(cmakeBuildType);
|
||||
}
|
||||
}
|
||||
|
||||
namespace Internal {
|
||||
@@ -2179,7 +2177,7 @@ void InitialCMakeArgumentsAspect::setAllValues(const QString &values, QStringLis
|
||||
|
||||
// Display the unknown arguments in "Additional CMake Options"
|
||||
const QString additionalOptionsValue = ProcessArgs::joinArgs(additionalOptions);
|
||||
BaseAspect::setValueQuietly(additionalOptionsValue);
|
||||
setValueQuietly(additionalOptionsValue);
|
||||
}
|
||||
|
||||
void InitialCMakeArgumentsAspect::setCMakeConfiguration(const CMakeConfig &config)
|
||||
|
||||
Reference in New Issue
Block a user