QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Model for sub diagrams in a stacked diagram view. More...
#include <qgsstackeddiagramproperties.h>
Public Member Functions | |
QgsStackedDiagramPropertiesModel (QObject *parent=nullptr) | |
constructor | |
~QgsStackedDiagramPropertiesModel () override | |
int | columnCount (const QModelIndex &=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
QgsDiagramLayerSettings | diagramLayerSettings () const |
Returns the diagram layer settings from the model. | |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
void | insertSubDiagram (const int index, QgsDiagramRenderer *newSubDiagram) |
Inserts a new diagram at the specified position. Takes ownership. | |
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
int | rowCount (const QModelIndex &=QModelIndex()) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
QgsDiagramRenderer * | subDiagramForIndex (const QModelIndex &index) const |
Returns the diagram renderer at the specified index. Does not transfer ownership. | |
QList< QgsDiagramRenderer * > | subRenderers () const |
Returns the list of diagram renderers from the model. Does not transfer ownership. | |
void | updateDiagramLayerSettings (QgsDiagramLayerSettings dls) |
Sets the diagram layer settings for the model. | |
void | updateSubDiagram (const QModelIndex &index, QgsDiagramRenderer *dr) |
Replaces the diagram located at index by dr. Takes ownership. | |
Protected Attributes | |
QgsDiagramLayerSettings | mDiagramLayerSettings |
QList< QgsDiagramRenderer * > | mRenderers |
Model for sub diagrams in a stacked diagram view.
Definition at line 45 of file qgsstackeddiagramproperties.h.
QgsStackedDiagramPropertiesModel::QgsStackedDiagramPropertiesModel | ( | QObject * | parent = nullptr | ) |
constructor
Definition at line 368 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 373 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 500 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 385 of file qgsstackeddiagramproperties.cpp.
QgsDiagramLayerSettings QgsStackedDiagramPropertiesModel::diagramLayerSettings | ( | ) | const |
Returns the diagram layer settings from the model.
Definition at line 584 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 378 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 483 of file qgsstackeddiagramproperties.cpp.
void QgsStackedDiagramPropertiesModel::insertSubDiagram | ( | const int | index, |
QgsDiagramRenderer * | newSubDiagram | ||
) |
Inserts a new diagram at the specified position. Takes ownership.
Definition at line 557 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 537 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 495 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 505 of file qgsstackeddiagramproperties.cpp.
QgsDiagramRenderer * QgsStackedDiagramPropertiesModel::subDiagramForIndex | ( | const QModelIndex & | index | ) | const |
Returns the diagram renderer at the specified index. Does not transfer ownership.
Definition at line 550 of file qgsstackeddiagramproperties.cpp.
QList< QgsDiagramRenderer * > QgsStackedDiagramPropertiesModel::subRenderers | ( | ) | const |
Returns the list of diagram renderers from the model. Does not transfer ownership.
Definition at line 574 of file qgsstackeddiagramproperties.cpp.
void QgsStackedDiagramPropertiesModel::updateDiagramLayerSettings | ( | QgsDiagramLayerSettings | dls | ) |
Sets the diagram layer settings for the model.
Definition at line 579 of file qgsstackeddiagramproperties.cpp.
void QgsStackedDiagramPropertiesModel::updateSubDiagram | ( | const QModelIndex & | index, |
QgsDiagramRenderer * | dr | ||
) |
Replaces the diagram located at index by dr. Takes ownership.
Definition at line 564 of file qgsstackeddiagramproperties.cpp.
|
protected |
Definition at line 89 of file qgsstackeddiagramproperties.h.
|
protected |
Definition at line 88 of file qgsstackeddiagramproperties.h.