Akonadi
collectiongeneralpropertiespage.cpp
54 ui.countLabel->setText(i18ncp("@label", "One object", "%1 objects", collection.statistics().count()));
64 if (collection.hasAttribute<EntityDisplayAttribute>() && !collection.attribute<EntityDisplayAttribute>()->displayName().isEmpty()) {
71 collection.attribute<EntityDisplayAttribute>(Collection::AddIfMissing)->setIconName(ui.customIcon->icon());
A single page in a collection properties dialog.
Definition collectionpropertiespage.h:89
qint64 count() const
Returns the number of items in this collection or -1 if this information is not available.
Definition core/collectionstatistics.cpp:37
qint64 size() const
Returns the total size of the items in this collection or -1 if this information is not available.
Definition core/collectionstatistics.cpp:57
CollectionStatistics statistics() const
Returns the collection statistics of the collection.
Definition collection.cpp:326
bool hasAttribute(const QByteArray &name) const
Returns true if the collection has an attribute of the given type name, false otherwise.
Definition collection.cpp:161
void setName(const QString &name)
Sets the i18n'ed name of the collection.
Definition collection.cpp:221
Attribute * attribute(const QByteArray &name)
Returns the attribute of the given type name if available, 0 otherwise.
Definition collection.cpp:176
Attribute that stores the properties that are used to display an entity.
Definition entitydisplayattribute.h:30
QString displayName() const
Returns the name that should be used for display.
Definition entitydisplayattribute.cpp:29
QString formatByteSize(double size, int precision=1, KFormat::BinaryUnitDialect dialect=KFormat::DefaultBinaryDialect, KFormat::BinarySizeUnits units=KFormat::DefaultBinaryUnits) const
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18ncp(const char *context, const char *singular, const char *plural, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT QString displayName(Akonadi::ETMCalendar *calendar, const Akonadi::Collection &collection)
Helper integration between Akonadi and Qt.
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.