shorter method name
This commit is contained in:
parent
47c68677dd
commit
ff228d7992
3 changed files with 6 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
||||||
<url type="donation">https://github.com/sponsors/martinrotter</url>
|
<url type="donation">https://github.com/sponsors/martinrotter</url>
|
||||||
<content_rating type="oars-1.1" />
|
<content_rating type="oars-1.1" />
|
||||||
<releases>
|
<releases>
|
||||||
<release version="4.0.3" date="2021-10-04"/>
|
<release version="4.0.3" date="2021-10-05"/>
|
||||||
</releases>
|
</releases>
|
||||||
<content_rating type="oars-1.0">
|
<content_rating type="oars-1.0">
|
||||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||||
|
|
|
@ -17,6 +17,10 @@ void MessageObject::setMessage(Message* message) {
|
||||||
m_message = message;
|
m_message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool MessageObject::isDuplicate(DuplicationAttributeCheck attribute_check) const {
|
||||||
|
return isDuplicateWithAttribute(attribute_check);
|
||||||
|
}
|
||||||
|
|
||||||
bool MessageObject::isDuplicateWithAttribute(MessageObject::DuplicationAttributeCheck attribute_check) const {
|
bool MessageObject::isDuplicateWithAttribute(MessageObject::DuplicationAttributeCheck attribute_check) const {
|
||||||
// Check database according to duplication attribute_check.
|
// Check database according to duplication attribute_check.
|
||||||
QSqlQuery q(*m_db);
|
QSqlQuery q(*m_db);
|
||||||
|
|
|
@ -78,6 +78,7 @@ class MessageObject : public QObject {
|
||||||
// Check if message is duplicate with another messages in DB.
|
// Check if message is duplicate with another messages in DB.
|
||||||
// Parameter "attribute_check" is DuplicationAttributeCheck enum
|
// Parameter "attribute_check" is DuplicationAttributeCheck enum
|
||||||
// value casted to int.
|
// value casted to int.
|
||||||
|
Q_INVOKABLE bool isDuplicate(MessageObject::DuplicationAttributeCheck attribute_check) const;
|
||||||
Q_INVOKABLE bool isDuplicateWithAttribute(MessageObject::DuplicationAttributeCheck attribute_check) const;
|
Q_INVOKABLE bool isDuplicateWithAttribute(MessageObject::DuplicationAttributeCheck attribute_check) const;
|
||||||
|
|
||||||
// Adds given label to list of assigned labels to this message.
|
// Adds given label to list of assigned labels to this message.
|
||||||
|
|
Loading…
Add table
Reference in a new issue