akonadi
#include <tagattribute.h>

Public Member Functions | |
QColor | backgroundColor () const |
TagAttribute * | clone () const |
void | deserialize (const QByteArray &data) |
QString | displayName () const |
QString | font () const |
QString | iconName () const |
bool | inToolbar () const |
int | priority () const |
QByteArray | serialized () const |
void | setBackgroundColor (const QColor &color) |
void | setDisplayName (const QString &name) |
void | setFont (const QString &fontKey) |
void | setIconName (const QString &name) |
void | setInToolbar (bool) |
void | setPriority (int priority) |
void | setShortcut (const QString &) |
void | setTextColor (const QColor &color) |
QString | shortcut () const |
QColor | textColor () const |
QByteArray | type () const |
![]() | |
virtual | ~Attribute () |
Additional Inherited Members | |
![]() | |
typedef QList< Attribute * > | List |
Detailed Description
Attribute that stores the properties that are used to display a tag.
- Since
- 4.13
Definition at line 38 of file tagattribute.h.
Constructor & Destructor Documentation
◆ TagAttribute()
TagAttribute::TagAttribute | ( | ) |
Definition at line 46 of file tagattribute.cpp.
◆ ~TagAttribute()
TagAttribute::~TagAttribute | ( | ) |
Definition at line 51 of file tagattribute.cpp.
Member Function Documentation
◆ backgroundColor()
QColor TagAttribute::backgroundColor | ( | ) | const |
Definition at line 168 of file tagattribute.cpp.
◆ clone()
|
virtual |
Creates a copy of this attribute.
Implements Akonadi::Attribute.
Definition at line 82 of file tagattribute.cpp.
◆ deserialize()
|
virtual |
Sets the data of this attribute, using the same encoding as returned by toByteArray().
- Parameters
-
data The encoded attribute data.
Implements Akonadi::Attribute.
Definition at line 146 of file tagattribute.cpp.
◆ displayName()
QString TagAttribute::displayName | ( | ) | const |
Returns the name that should be used for display.
Users of this should fall back to Collection::name() if this is empty.
Definition at line 56 of file tagattribute.cpp.
◆ font()
QString TagAttribute::font | ( | ) | const |
Definition at line 193 of file tagattribute.cpp.
◆ iconName()
QString TagAttribute::iconName | ( | ) | const |
Returns the icon name of the icon returned by icon().
Definition at line 66 of file tagattribute.cpp.
◆ inToolbar()
bool TagAttribute::inToolbar | ( | ) | const |
Definition at line 203 of file tagattribute.cpp.
◆ priority()
int TagAttribute::priority | ( | ) | const |
Returns the priority of the tag.
The default value is -1
Definition at line 223 of file tagattribute.cpp.
◆ serialized()
|
virtual |
Returns a QByteArray representation of the attribute which will be storaged.
This can be raw binary data, no encoding needs to be applied.
Implements Akonadi::Attribute.
Definition at line 96 of file tagattribute.cpp.
◆ setBackgroundColor()
void TagAttribute::setBackgroundColor | ( | const QColor & | color | ) |
Definition at line 173 of file tagattribute.cpp.
◆ setDisplayName()
void TagAttribute::setDisplayName | ( | const QString & | name | ) |
Sets the name
that should be used for display.
Definition at line 61 of file tagattribute.cpp.
◆ setFont()
void TagAttribute::setFont | ( | const QString & | fontKey | ) |
Definition at line 188 of file tagattribute.cpp.
◆ setIconName()
void TagAttribute::setIconName | ( | const QString & | name | ) |
Sets the icon name
for the default icon.
Definition at line 71 of file tagattribute.cpp.
◆ setInToolbar()
void TagAttribute::setInToolbar | ( | bool | inToolbar | ) |
Definition at line 198 of file tagattribute.cpp.
◆ setPriority()
void TagAttribute::setPriority | ( | int | priority | ) |
Sets the priority of the tag.
The priority is primarily used for presentation, e.g. for sorting. If only one tag can be displayed for a given item, the one with the highest priority should be shown.
Definition at line 218 of file tagattribute.cpp.
◆ setShortcut()
void TagAttribute::setShortcut | ( | const QString & | shortcut | ) |
Definition at line 208 of file tagattribute.cpp.
◆ setTextColor()
void TagAttribute::setTextColor | ( | const QColor & | color | ) |
Definition at line 178 of file tagattribute.cpp.
◆ shortcut()
QString TagAttribute::shortcut | ( | ) | const |
Definition at line 213 of file tagattribute.cpp.
◆ textColor()
QColor TagAttribute::textColor | ( | ) | const |
Definition at line 183 of file tagattribute.cpp.
◆ type()
|
virtual |
Returns the type of the attribute.
Implements Akonadi::Attribute.
Definition at line 76 of file tagattribute.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.