restore AbstractFieldPhrase::operator !

This commit is contained in:
Hamed Masafi 2019-02-26 23:45:46 +03:30
parent 6489d7bad4
commit fb7b914c73
2 changed files with 8 additions and 0 deletions

View File

@ -96,4 +96,11 @@ AbstractFieldPhrase AbstractFieldPhrase::operator ~()
return f;
}
AbstractFieldPhrase AbstractFieldPhrase::operator !()
{
AbstractFieldPhrase f(data->className, data->fieldName);
f.data->isNot = !data->isNot;
return f;
}
NUT_END_NAMESPACE

View File

@ -57,6 +57,7 @@ public:
ConditionalPhrase operator >=(const AbstractFieldPhrase &other);
AbstractFieldPhrase operator ~();
AbstractFieldPhrase operator !();
AssignmentPhrase operator =(const QVariant &other);
AssignmentPhrase operator =(const ConditionalPhrase &other);
AssignmentPhrase operator <<(const QVariant &other);