From 15a73fae6aaffbedc287359fba119e57613a2ed1 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Thu, 4 Dec 2025 11:30:44 +0200 Subject: Rename QMailMessageMetadata::content as contentCategory The related functionality was confusing when setContent() didn't actually set any content but rather the type of it. Also there are other setContent() methods around that actually set the content. Then again calling this contentType() would have collided further in the inheritance tree by method returning a QMailMessageContentType which is referring to header fields. Thus switched this to a third distinct name. Old setter and getter names provided for backwards compatibility which should work at least for the very basic cases of setting and comparing type. Change-Id: I4c54548f3c2c85096fde64b3221e233dd3feefa3 Reviewed-by: Damien Caliste Reviewed-by: Reviewed-by: Pekka Vuorela --- examples/qtmail/emailcomposer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/qtmail/emailcomposer.h') diff --git a/examples/qtmail/emailcomposer.h b/examples/qtmail/emailcomposer.h index 21b17c3c..7aed5b5e 100644 --- a/examples/qtmail/emailcomposer.h +++ b/examples/qtmail/emailcomposer.h @@ -68,7 +68,7 @@ public: virtual QString key() const; virtual QList messageTypes() const; - virtual QList contentTypes() const; + virtual QList contentTypes() const; virtual QString name(QMailMessage::MessageType type) const; virtual QString displayName(QMailMessage::MessageType type) const; virtual QIcon displayIcon(QMailMessage::MessageType type) const; -- cgit v1.2.3