Cpp: Use new settings API

Avoid writing defaults to the settings.

Task-number: QTCREATORBUG-24430
Change-Id: I8e1d5a5b8ca21ef96a68a4d71a7d97d138bd186b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Eike Ziller
2021-01-20 17:39:04 +01:00
parent 8443fbe3d4
commit 8112a00432
10 changed files with 240 additions and 153 deletions

View File

@@ -48,6 +48,14 @@ public:
}
struct CustomTemplate
{
bool operator==(const CustomTemplate &b) const
{
return types == b.types
&& equalComparison == b.equalComparison
&& returnExpression == b.returnExpression
&& returnType == b.returnType
&& assignment == b.assignment;
}
QStringList types;
QString equalComparison;
QString returnExpression;