|
Krita Source Code Documentation
|
#include <InfoObject.h>
Inheritance diagram for InfoObject:Public Slots | |
| QVariant | property (const QString &key) |
| void | setProperty (const QString &key, QVariant value) |
Public Member Functions | |
| InfoObject (KisPropertiesConfigurationSP configuration) | |
| InfoObject (QObject *parent=0) | |
| bool | operator!= (const InfoObject &other) const |
| bool | operator== (const InfoObject &other) const |
| QMap< QString, QVariant > | properties () const |
| void | setProperties (QMap< QString, QVariant > propertyMap) |
| ~InfoObject () override | |
Private Member Functions | |
| KisPropertiesConfigurationSP | configuration () const |
| configuration gives access to the internal configuration object. Must be used internally in libkis | |
Private Attributes | |
| Private * | d |
Friends | |
| class | Document |
| class | Filter |
| class | Node |
InfoObject wrap a properties map. These maps can be used to set the configuration for filters.
Definition at line 19 of file InfoObject.h.
| InfoObject::InfoObject | ( | KisPropertiesConfigurationSP | configuration | ) |
Definition at line 16 of file InfoObject.cpp.
References configuration(), d, and krita::InfoObject::Private::properties.
|
explicit |
Create a new, empty InfoObject.
Definition at line 23 of file InfoObject.cpp.
References d, and krita::InfoObject::Private::properties.
|
override |
|
private |
configuration gives access to the internal configuration object. Must be used internally in libkis
Definition at line 86 of file InfoObject.cpp.
References d, and krita::InfoObject::Private::properties.
| bool InfoObject::operator!= | ( | const InfoObject & | other | ) | const |
| bool InfoObject::operator== | ( | const InfoObject & | other | ) | const |
Definition at line 35 of file InfoObject.cpp.
References d, and krita::InfoObject::Private::properties.
| QMap< QString, QVariant > InfoObject::properties | ( | ) | const |
Return all properties this InfoObject manages.
Definition at line 45 of file InfoObject.cpp.
References d, krita::InfoObject::Private::properties, KoColor::toXML(), and v.
|
slot |
return the value for the property identified by key, or None if there is no such key.
Definition at line 72 of file InfoObject.cpp.
References d, krita::InfoObject::Private::properties, KoColor::toXML(), and v.
| void InfoObject::setProperties | ( | QMap< QString, QVariant > | propertyMap | ) |
Add all properties in the propertyMap to this InfoObject
Definition at line 60 of file InfoObject.cpp.
References d, and krita::InfoObject::Private::properties.
|
slot |
set the property identified by key to value
If you want create a property that represents a color, you can use a QColor or hex string, as defined in https://doc.qt.io/qt-5/qcolor.html#setNamedColor.
Definition at line 67 of file InfoObject.cpp.
References d, krita::InfoObject::Private::properties, and value().
|
friend |
Definition at line 62 of file InfoObject.h.
|
friend |
Definition at line 61 of file InfoObject.h.
|
friend |
Definition at line 63 of file InfoObject.h.
|
private |
Definition at line 72 of file InfoObject.h.