forked from qt-creator/qt-creator
Change and Clone kit functionality
Change-Id: Ibdab8d9076d2f9c002cb69ad81809929c8697355 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -326,6 +326,13 @@ void ValgrindGlobalSettings::fromMap(const QVariantMap &map)
|
||||
setIfPresent(map, QLatin1String(callgrindShortenTemplates), &m_shortenTemplates);
|
||||
}
|
||||
|
||||
AbstractAnalyzerSubConfig *ValgrindGlobalSettings::clone()
|
||||
{
|
||||
ValgrindGlobalSettings *other = new ValgrindGlobalSettings;
|
||||
other->fromMap(toMap());
|
||||
return other;
|
||||
}
|
||||
|
||||
QVariantMap ValgrindGlobalSettings::toMap() const
|
||||
{
|
||||
QVariantMap map = ValgrindBaseSettings::toMap();
|
||||
@@ -459,6 +466,13 @@ void ValgrindProjectSettings::fromMap(const QVariantMap &map)
|
||||
setIfPresent(map, removedSuppressionFilesC, &m_disabledGlobalSuppressionFiles);
|
||||
}
|
||||
|
||||
AbstractAnalyzerSubConfig *ValgrindProjectSettings::clone()
|
||||
{
|
||||
ValgrindProjectSettings *other = new ValgrindProjectSettings;
|
||||
other->fromMap(toMap());
|
||||
return other;
|
||||
}
|
||||
|
||||
QVariantMap ValgrindProjectSettings::toMap() const
|
||||
{
|
||||
QVariantMap map = ValgrindBaseSettings::toMap();
|
||||
|
||||
@@ -175,6 +175,7 @@ public:
|
||||
QVariantMap toMap() const;
|
||||
QVariantMap defaults() const;
|
||||
void fromMap(const QVariantMap &map);
|
||||
virtual AbstractAnalyzerSubConfig *clone();
|
||||
|
||||
/*
|
||||
* Global memcheck settings
|
||||
@@ -232,6 +233,7 @@ public:
|
||||
QVariantMap toMap() const;
|
||||
QVariantMap defaults() const;
|
||||
void fromMap(const QVariantMap &map);
|
||||
virtual AbstractAnalyzerSubConfig *clone();
|
||||
|
||||
/**
|
||||
* Per-project memcheck settings, saves a diff to the global suppression files list
|
||||
|
||||
Reference in New Issue
Block a user