Model for sub diagrams in a stacked diagram view.
More...
#include <qgsstackeddiagramproperties.h>
|
| 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.
|
|
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
|
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.
|
|
QMimeData * | mimeData (const QModelIndexList &indexes) const override |
|
QStringList | mimeTypes () const override |
|
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.
|
|
Qt::DropActions | supportedDropActions () const override |
|
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.
|
|
Model for sub diagrams in a stacked diagram view.
- Note
- This class is not a part of public API
- Since
- QGIS 3.40
Definition at line 45 of file qgsstackeddiagramproperties.h.
◆ QgsStackedDiagramPropertiesModel()
QgsStackedDiagramPropertiesModel::QgsStackedDiagramPropertiesModel |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~QgsStackedDiagramPropertiesModel()
QgsStackedDiagramPropertiesModel::~QgsStackedDiagramPropertiesModel |
( |
| ) |
|
|
override |
◆ columnCount()
int QgsStackedDiagramPropertiesModel::columnCount |
( |
const QModelIndex & |
= QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant QgsStackedDiagramPropertiesModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ diagramLayerSettings()
◆ dropMimeData()
bool QgsStackedDiagramPropertiesModel::dropMimeData |
( |
const QMimeData * |
data, |
|
|
Qt::DropAction |
action, |
|
|
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent |
|
) |
| |
|
override |
◆ flags()
Qt::ItemFlags QgsStackedDiagramPropertiesModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ headerData()
QVariant QgsStackedDiagramPropertiesModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ insertSubDiagram()
void QgsStackedDiagramPropertiesModel::insertSubDiagram |
( |
const int |
index, |
|
|
QgsDiagramRenderer * |
newSubDiagram |
|
) |
| |
◆ mimeData()
QMimeData * QgsStackedDiagramPropertiesModel::mimeData |
( |
const QModelIndexList & |
indexes | ) |
const |
|
override |
◆ mimeTypes()
QStringList QgsStackedDiagramPropertiesModel::mimeTypes |
( |
| ) |
const |
|
override |
◆ removeRows()
bool QgsStackedDiagramPropertiesModel::removeRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| |
|
override |
◆ rowCount()
int QgsStackedDiagramPropertiesModel::rowCount |
( |
const QModelIndex & |
= QModelIndex() | ) |
const |
|
override |
◆ setData()
bool QgsStackedDiagramPropertiesModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ subDiagramForIndex()
QgsDiagramRenderer * QgsStackedDiagramPropertiesModel::subDiagramForIndex |
( |
const QModelIndex & |
index | ) |
const |
◆ subRenderers()
◆ supportedDropActions()
Qt::DropActions QgsStackedDiagramPropertiesModel::supportedDropActions |
( |
| ) |
const |
|
override |
◆ updateDiagramLayerSettings()
◆ updateSubDiagram()
void QgsStackedDiagramPropertiesModel::updateSubDiagram |
( |
const QModelIndex & |
index, |
|
|
QgsDiagramRenderer * |
dr |
|
) |
| |
◆ mDiagramLayerSettings
◆ mRenderers
The documentation for this class was generated from the following files: