Akonadi
entitydisplayattribute.cpp
79 components = QList<QByteArray>() << QByteArray::number(d->backgroundColor.red()) << QByteArray::number(d->backgroundColor.green())
80 << QByteArray::number(d->backgroundColor.blue()) << QByteArray::number(d->backgroundColor.alpha());
Attribute that stores the properties that are used to display an entity.
Definition entitydisplayattribute.h:30
void setIconName(const QString &name)
Sets the icon name for the default icon.
Definition entitydisplayattribute.cpp:49
QIcon activeIcon() const
Returns the icon that should be used for this collection or item when active.
Definition entitydisplayattribute.cpp:124
void setBackgroundColor(const QColor &color)
Sets the backgroundColor to color.
Definition entitydisplayattribute.cpp:139
void setActiveIconName(const QString &name)
Sets the icon name for the active icon.
Definition entitydisplayattribute.cpp:119
~EntityDisplayAttribute() override
Destroys the entity display attribute.
QIcon icon() const
Returns the icon that should be used for this collection or item.
Definition entitydisplayattribute.cpp:39
QByteArray type() const override
Returns the type of the attribute.
Definition entitydisplayattribute.cpp:54
EntityDisplayAttribute()
Creates a new entity display attribute.
Definition entitydisplayattribute.cpp:22
QByteArray serialized() const override
Returns a QByteArray representation of the attribute which will be storaged.
Definition entitydisplayattribute.cpp:70
QColor backgroundColor() const
Returns the backgroundColor or an invalid color if none is set.
Definition entitydisplayattribute.cpp:134
QString displayName() const
Returns the name that should be used for display.
Definition entitydisplayattribute.cpp:29
void setDisplayName(const QString &name)
Sets the name that should be used for display.
Definition entitydisplayattribute.cpp:34
QString activeIconName() const
Returns the icon name of an active item.
Definition entitydisplayattribute.cpp:129
void deserialize(const QByteArray &data) override
Sets the data of this attribute, using the same encoding as returned by toByteArray().
Definition entitydisplayattribute.cpp:86
EntityDisplayAttribute * clone() const override
Creates a copy of this attribute.
Definition entitydisplayattribute.cpp:60
QString iconName() const
Returns the icon name of the icon returned by icon().
Definition entitydisplayattribute.cpp:44
Helper integration between Akonadi and Qt.
QByteArray number(double n, char format, int precision)
QIcon fromTheme(const QString &name)
const_reference at(qsizetype i) const const
void reserve(qsizetype size)
qsizetype size() const const
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.