summaryrefslogtreecommitdiff
path: root/src/plugins/valgrind/valgrindsettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/valgrind/valgrindsettings.cpp')
-rw-r--r--src/plugins/valgrind/valgrindsettings.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/valgrind/valgrindsettings.cpp b/src/plugins/valgrind/valgrindsettings.cpp
index d00d5e88c9..ca417a48a3 100644
--- a/src/plugins/valgrind/valgrindsettings.cpp
+++ b/src/plugins/valgrind/valgrindsettings.cpp
@@ -324,6 +324,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();
@@ -457,6 +464,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();