Akonadi
tagattribute.cpp
85 components = QList<QByteArray>() << QByteArray::number(d->backgroundColor.red()) << QByteArray::number(d->backgroundColor.green())
86 << QByteArray::number(d->backgroundColor.blue()) << QByteArray::number(d->backgroundColor.alpha());
93 components = QList<QByteArray>() << QByteArray::number(d->textColor.red()) << QByteArray::number(d->textColor.green())
Attribute that stores the properties that are used to display a tag.
Definition tagattribute.h:27
QString displayName() const
Returns the name that should be used for display.
Definition tagattribute.cpp:33
TagAttribute * clone() const override
Creates a copy of this attribute.
Definition tagattribute.cpp:59
void setDisplayName(const QString &name)
Sets the name that should be used for display.
Definition tagattribute.cpp:38
QByteArray serialized() const override
Returns a QByteArray representation of the attribute which will be storaged.
Definition tagattribute.cpp:73
void setIconName(const QString &name)
Sets the icon name for the default icon.
Definition tagattribute.cpp:48
QString iconName() const
Returns the icon name of the icon returned by icon().
Definition tagattribute.cpp:43
void deserialize(const QByteArray &data) override
Sets the data of this attribute, using the same encoding as returned by toByteArray().
Definition tagattribute.cpp:121
Helper integration between Akonadi and Qt.
const QList< QKeySequence > & shortcut(StandardShortcut id)
QByteArray number(double n, char format, int precision)
const_reference at(qsizetype i) const const
void reserve(qsizetype size)
qsizetype size() const const
QString fromUtf8(QByteArrayView str)
QString number(double n, char format, int precision)
int toInt(bool *ok, int base) const const
QByteArray toUtf8() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:11:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:11:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.