QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
An abstract base class for icon generators for a QgsStyleModel. More...
#include <qgsstylemodel.h>
Signals | |
void | iconGenerated (QgsStyle::StyleEntity type, const QString &name, const QIcon &icon) |
Emitted when the icon for the style entity with matching type and name has been generated. More... | |
Public Member Functions | |
QgsAbstractStyleEntityIconGenerator (QObject *parent) | |
Constructor for QgsAbstractStyleEntityIconGenerator, with the specified parent object. More... | |
virtual void | generateIcon (QgsStyle *style, QgsStyle::StyleEntity type, const QString &name)=0 |
Triggers generation of an icon for an entity from the specified style database, with matching entity type and name. More... | |
QList< QSize > | iconSizes () const |
Returns the list of icon sizes to generate. More... | |
void | setIconSizes (const QList< QSize > &sizes) |
Sets the list of icon sizes to generate. More... | |
An abstract base class for icon generators for a QgsStyleModel.
This base class allows for creation of specialized icon generators for entities in a style database, and allows for deferred icon generation.
Definition at line 44 of file qgsstylemodel.h.
QgsAbstractStyleEntityIconGenerator::QgsAbstractStyleEntityIconGenerator | ( | QObject * | parent | ) |
Constructor for QgsAbstractStyleEntityIconGenerator, with the specified parent object.
Definition at line 39 of file qgsstylemodel.cpp.
|
pure virtual |
Triggers generation of an icon for an entity from the specified style database, with matching entity type and name.
|
signal |
Emitted when the icon for the style entity with matching type and name has been generated.
QList< QSize > QgsAbstractStyleEntityIconGenerator::iconSizes | ( | ) | const |
Returns the list of icon sizes to generate.
Definition at line 50 of file qgsstylemodel.cpp.
void QgsAbstractStyleEntityIconGenerator::setIconSizes | ( | const QList< QSize > & | sizes | ) |
Sets the list of icon sizes to generate.
Definition at line 45 of file qgsstylemodel.cpp.