6 #ifndef SWIFT_MISC_NAMEVARIANTPAIR_H
7 #define SWIFT_MISC_NAMEVARIANTPAIR_H
29 IndexName = swift::misc::CPropertyIndexRef::GlobalIndexCNameVariantPair,
40 const QString &
getName()
const {
return m_name; }
46 void setName(
const QString &name) { this->m_name = name; }
49 bool hasName()
const {
return !this->m_name.isEmpty(); }
67 QString convertToQString(
bool i18n =
false)
const;
Value object for icons. An icon is stored in the global icon repository and identified by its index....
IconIndex
Index for each icon, allows to send them via DBus, efficiently store them, etc.
void setVariant(const CVariant &variant)
Set variant.
CVariant getVariant() const
Get variant.
const QString & getName() const
Get name.
bool hasName() const
Name available?
void setName(const QString &name)
Set name.
CNameVariantPair()=default
Default constructor.
Non-owning reference to a CPropertyIndex with a subset of its features.
Mix of the most commonly used mixin classes.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
ColumnIndex
Base class enums.
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...