QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
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 367 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 372 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 499 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 384 of file qgsstackeddiagramproperties.cpp.
QgsDiagramLayerSettings QgsStackedDiagramPropertiesModel::diagramLayerSettings | ( | ) | const |
Returns the diagram layer settings from the model.
Definition at line 583 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 377 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 482 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 556 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 536 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 494 of file qgsstackeddiagramproperties.cpp.
|
override |
Definition at line 504 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 549 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 573 of file qgsstackeddiagramproperties.cpp.
void QgsStackedDiagramPropertiesModel::updateDiagramLayerSettings | ( | QgsDiagramLayerSettings | dls | ) |
Sets the diagram layer settings for the model.
Definition at line 578 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 563 of file qgsstackeddiagramproperties.cpp.
|
protected |
Definition at line 89 of file qgsstackeddiagramproperties.h.
|
protected |
Definition at line 88 of file qgsstackeddiagramproperties.h.