Messagelib
messageitem.cpp
187 auto messageListTag = new MessageItem::Tag(QIcon::fromTheme(symbol).pixmap(KIconLoader::SizeSmall), tag.name(), tag.url().url());
272 QPointer<PimCommon::AnnotationEditDialog> mAnnotationDialog = new PimCommon::AnnotationEditDialog(d->mAkonadiItem, parent);
536 return status().isRead() ? i18nc("Status of an item", "Read") : i18nc("Status of an item", "Unread");
538 return accessibleTextForField(Theme::ContentItem::ReadStateIcon) + accessibleTextForField(Theme::ContentItem::RepliedStateIcon);
void append(const T &value)
QString formattedDate() const
A string with a text rappresentation of date() obtained via Manager.
Definition: item.cpp:305
bool isReplied() const
QString name() const const
bool fromString(const QString &descrip)
An invariant index that can be ALWAYS used to reference an item inside a QAbstractItemModel.
Definition: modelinvariantindex.h:39
void result(KJob *job)
QList< Tag * > tagList() const override
Reimplemented to return the fake tag list.
Definition: messageitem.cpp:635
void tagRemoved(const Akonadi::Tag &tag)
int count(const T &value) const const
void editAnnotation(QWidget *parent)
Shows a dialog to edit or delete the annotation.
Definition: messageitem.cpp:269
QIcon fromTheme(const QString &name)
void tagAdded(const Akonadi::Tag &tag)
const QList< Row * > & messageRows() const
Returns the list of rows visible in this column for a MessageItem.
Definition: theme.cpp:718
Column * column(int idx) const
Returns a pointer to the column at the specified index or 0 if there is no such column.
Definition: theme.cpp:973
Tag::List tags() const
Item * parent() const
Returns the parent Item in the tree, or 0 if this item isn't attached to the tree.
Definition: item.cpp:436
@ CombinedReadRepliedStateIcon
The combined icon that displays the unread/read/replied/forwarded state (never disabled)
Definition: theme.h:190
const Tag * findTag(const QString &szTagId) const
Returns Tag associated to this message that has the specified id or 0 if no such tag exists.
Definition: messageitem.cpp:291
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
bool isToAct() const
void reserve(int alloc)
Message
virtual bool hasAnnotation() const
Returns true if this message has an annotation.
Definition: messageitem.cpp:244
bool isEmpty() const const
@ RepliedStateIcon
The icon that displays the replied/forwarded state (may be disabled)
Definition: theme.h:142
virtual QList< Tag * > tagList() const
Returns the list of tags for this item.
Definition: messageitem.cpp:238
void invalidateAnnotationCache()
Same as invalidateTagCache(), only for the annotation.
Definition: messageitem.cpp:318
QString join(const QString &separator) const const
SizeSmall
bool hasAnnotation() const override
Reimplemented to always return true.
Definition: messageitem.cpp:647
bool isRead() const
void subTreeToList(QList< MessageItem * > &list)
Appends the whole subtree originating at this item to the specified list.
Definition: messageitem.cpp:571
void insert(int i, const T &value)
Definition: aggregation.h:21
The Theme class defines the visual appearance of the MessageList.
Definition: theme.h:47
bool isEmpty() const const
A message item that can have a fake tag list and a fake annotation.
Definition: messageitem.h:195
QString formattedSize() const
A string with a text rappresentation of size().
Definition: item.cpp:300
Id id() const
QString fromLatin1(const char *str, int size)
void setObjectName(const QString &name)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QList::iterator begin()
const Akonadi::MessageStatus & status() const
Returns the status associated to this Item.
Definition: item.cpp:446
const QString & senderOrReceiver() const
Returns the sender or the receiver, depending on the underlying StorageModel settings.
Definition: item.cpp:516
QString annotation() const
Returns the annotation of the message, given that hasAnnotation() is true.
Definition: messageitem.cpp:251
virtual QString errorString() const
int error() const
A single item of the MessageList tree managed by MessageList::Model.
Definition: item.h:47
void setFakeTags(const QList< Tag * > &tagList)
Sets a list of fake tags for this item.
Definition: messageitem.cpp:641
bool isImportant() const
void tagChanged(const Akonadi::Tag &tag)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:53:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:53:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.