@@ -30,7 +30,8 @@ EngineConfiguration::EngineConfiguration()
3030 m_restartMode(RestartAuto),
3131 m_rating(0 ),
3232 m_restart_score(0 ),
33- m_strikes(0 )
33+ m_strikes(0 ),
34+ m_cuteseal(false )
3435{
3536}
3637
@@ -47,7 +48,8 @@ EngineConfiguration::EngineConfiguration(const QString& name,
4748 m_restartMode(RestartAuto),
4849 m_rating(0 ),
4950 m_restart_score(0 ),
50- m_strikes(0 )
51+ m_strikes(0 ),
52+ m_cuteseal(false )
5153{
5254}
5355
@@ -59,7 +61,8 @@ EngineConfiguration::EngineConfiguration(const QVariant& variant)
5961 m_restartMode(RestartAuto),
6062 m_rating(0 ),
6163 m_restart_score(0 ),
62- m_strikes(0 )
64+ m_strikes(0 ),
65+ m_cuteseal(false )
6366{
6467 const QVariantMap map = variant.toMap ();
6568
@@ -127,7 +130,8 @@ EngineConfiguration::EngineConfiguration(const EngineConfiguration& other)
127130 m_restartMode(other.m_restartMode),
128131 m_rating(other.m_rating),
129132 m_restart_score(other.m_restart_score),
130- m_strikes(other.m_strikes)
133+ m_strikes(other.m_strikes),
134+ m_cuteseal(other.m_cuteseal)
131135{
132136 const auto options = other.options ();
133137 for (const EngineOption* option : options)
@@ -157,6 +161,7 @@ EngineConfiguration& EngineConfiguration::operator=(EngineConfiguration&& other)
157161 m_rating = other.m_rating ;
158162 m_strikes = other.m_strikes ;
159163 m_restart_score = other.m_restart_score ;
164+ m_cuteseal = other.m_cuteseal ;
160165 // other's destructor will cause a mess if its m_options isn't cleared
161166 other.m_options .clear ();
162167 return *this ;
@@ -210,6 +215,9 @@ QVariant EngineConfiguration::toVariant() const
210215 if (m_strikes > 0 )
211216 map.insert (" strikes" , m_strikes);
212217
218+ if (m_cuteseal)
219+ map.insert (" cuteseal" , true );
220+
213221 return map;
214222}
215223
@@ -418,6 +426,16 @@ void EngineConfiguration::setClaimsValidated(bool validate)
418426 m_validateClaims = validate;
419427}
420428
429+ void EngineConfiguration::setCuteseal (bool cuteseal)
430+ {
431+ m_cuteseal = cuteseal;
432+ }
433+
434+ bool EngineConfiguration::isCuteseal () const
435+ {
436+ return m_cuteseal;
437+ }
438+
421439EngineConfiguration& EngineConfiguration::operator =(const EngineConfiguration& other)
422440{
423441 if (this != &other)
@@ -437,6 +455,7 @@ EngineConfiguration& EngineConfiguration::operator=(const EngineConfiguration& o
437455 m_rating = other.m_rating ;
438456 m_strikes = other.m_strikes ;
439457 m_restart_score = other.m_restart_score ;
458+ m_cuteseal = other.m_cuteseal ;
440459
441460 qDeleteAll (m_options);
442461 m_options.clear ();
0 commit comments