Move limitdata array manipulation from ui to model

This commit is contained in:
elecpower
2021-03-28 08:13:22 +11:00
parent 02c51a19db
commit 9fd4d28738
5 changed files with 106 additions and 42 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ void LimitData::clear()
bool LimitData::isEmpty() const
{
return (min == -1000 && max == 1000 && !revert && !offset && !ppmCenter && !symetrical && name[0] == '\0' && !curve.isSet());
LimitData tmp;
return !memcmp(this, &tmp, sizeof(LimitData));
}
QString LimitData::minToString() const