QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
58 qDeleteAll( mMetadata );
63 if ( !metadata || mMetadata.contains( metadata->
name() ) )
66 mMetadata[metadata->
name()] = metadata;
78 return mMetadata.keys();
83 return mMetadata.value( name );
93 if ( !mMetadata.contains( name ) )
96 return mMetadata[name]->createCallout( properties, context );
static QIcon getThemeIcon(const QString &name)
Helper to get a theme icon.
static QgsCallout * defaultCallout()
Create a new instance of a callout with default settings.
Abstract base class for callout renderers.
static QgsCallout * create(const QVariantMap &properties=QVariantMap(), const QgsReadWriteContext &context=QgsReadWriteContext())
Creates a new QgsSimpleLineCallout, using the settings serialized in the properties map (correspondin...
QStringList calloutTypes() const
Returns a list of all available callout types.
static QVariant readVariant(const QDomElement &element)
Read a QVariant from a QDomElement.
A simple direct line callout style.
QgsCallout * createCallout(const QString &type, const QVariantMap &properties=QVariantMap(), const QgsReadWriteContext &context=QgsReadWriteContext()) const
Creates a new instance of a callout, given the callout type and properties.
QgsCalloutAbstractMetadata * calloutMetadata(const QString &type) const
Returns the metadata for specified the specified callout type.
bool addCalloutType(QgsCalloutAbstractMetadata *metadata)
Registers a new callout type.
static QgsCallout * create(const QVariantMap &properties=QVariantMap(), const QgsReadWriteContext &context=QgsReadWriteContext())
Creates a new QgsManhattanLineCallout, using the settings serialized in the properties map (correspon...