6 #include <QDBusMetaType>
23 qRegisterMetaType<swift::misc::CSequence<CIcon>>();
24 qDBusRegisterMetaType<swift::misc::CSequence<CIcon>>();
25 qRegisterMetaType<swift::misc::CCollection<CIcon>>();
26 qDBusRegisterMetaType<swift::misc::CCollection<CIcon>>();
27 qRegisterMetaType<CIconList>();
28 qDBusRegisterMetaType<CIconList>();
29 registerMetaValueType<CIconList>();
Value object for icons. An icon is stored in the global icon repository and identified by its index....
CIcons::IconIndex getIndex() const
Index.
static void registerMetadata()
Register metadata of unit and quantity.
CIcon findByIndex(CIcons::IconIndex index) const
Find by index.
IconIndex
Index for each icon, allows to send them via DBus, efficiently store them, etc.
const_reference frontOrDefault() const
Access the first element, or a default-initialized value if the sequence is empty.
CSequence findBy(Predicate p) const
Return a copy containing only those elements for which a given predicate returns true.
Free functions in swift::misc.
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template definition of mixins for a CSequence subclass.