shorter method name

This commit is contained in:
Martin Rotter 2021-10-05 10:15:39 +02:00
parent 47c68677dd
commit ff228d7992
3 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<url type="donation">https://github.com/sponsors/martinrotter</url>
<content_rating type="oars-1.1" />
<releases>
<release version="4.0.3" date="2021-10-04"/>
<release version="4.0.3" date="2021-10-05"/>
</releases>
<content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute>

View File

@ -17,6 +17,10 @@ void MessageObject::setMessage(Message* message) {
m_message = message;
}
bool MessageObject::isDuplicate(DuplicationAttributeCheck attribute_check) const {
return isDuplicateWithAttribute(attribute_check);
}
bool MessageObject::isDuplicateWithAttribute(MessageObject::DuplicationAttributeCheck attribute_check) const {
// Check database according to duplication attribute_check.
QSqlQuery q(*m_db);

View File

@ -78,6 +78,7 @@ class MessageObject : public QObject {
// Check if message is duplicate with another messages in DB.
// Parameter "attribute_check" is DuplicationAttributeCheck enum
// value casted to int.
Q_INVOKABLE bool isDuplicate(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.