QByteArray ImapPartAttachmentItem::mimeType() const { Imap::Mailbox::TreeItemPart *part = partPtr(); if (!part) return QByteArray(); return part->mimeType().toUtf8(); }
QString ImapPartAttachmentItem::tooltip() const { Imap::Mailbox::TreeItemPart *part = partPtr(); if (!part) return QString(); return MessageComposer::tr("%1, %2").arg(part->mimeType(), Imap::Mailbox::PrettySize::prettySize(part->octets())); }