QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgslayoutattributeselectiondialog.h>
Public Types | |
enum | Column { Attribute, Heading, Alignment, Width, SortOrder } |
Available columns for the configuration table to be used by the model. More... | |
enum | ShiftDirection { ShiftUp, ShiftDown } |
Controls whether a row/column is shifted up or down. More... | |
Public Member Functions | |
QgsLayoutAttributeTableColumnModelBase (QgsLayoutItemAttributeTable *table, QObject *parent=nullptr) | |
Constructor for QgsLayoutAttributeTableColumnModel. More... | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
virtual QVector< QgsLayoutTableColumn > & | columns () const =0 |
To be reimplemented to provide the display or the sort columns. More... | |
QVariant | data (const QModelIndex &index, int role) const override |
virtual QList< Column > | displayedColumns () const =0 |
To be reimplemented to choose which column should be used by the model. More... | |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
bool | moveRow (int row, ShiftDirection direction) |
Moves the specified row up or down in the model. More... | |
QModelIndex | parent (const QModelIndex &child) const override |
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
Protected Attributes | |
QgsLayoutItemAttributeTable * | mTable = nullptr |
A base model to hold the displaying or sortings columns used in a QgsLayoutAttributeTable
Definition at line 53 of file qgslayoutattributeselectiondialog.h.
Available columns for the configuration table to be used by the model.
Definition at line 71 of file qgslayoutattributeselectiondialog.h.
Controls whether a row/column is shifted up or down.
Enumerator | |
---|---|
ShiftUp | Shift the row/column up. |
ShiftDown | Shift the row/column down. |
Definition at line 62 of file qgslayoutattributeselectiondialog.h.
QgsLayoutAttributeTableColumnModelBase::QgsLayoutAttributeTableColumnModelBase | ( | QgsLayoutItemAttributeTable * | table, |
QObject * | parent = nullptr |
||
) |
Constructor for QgsLayoutAttributeTableColumnModel.
table | QgsLayoutItemAttributeTable the model is attached to |
parent | optional parent |
Definition at line 41 of file qgslayoutattributeselectiondialog.cpp.
|
override |
Definition at line 74 of file qgslayoutattributeselectiondialog.cpp.
|
pure virtual |
To be reimplemented to provide the display or the sort columns.
Implemented in QgsLayoutTableSortModel, and QgsLayoutAttributeTableColumnModel.
|
override |
Definition at line 80 of file qgslayoutattributeselectiondialog.cpp.
|
pure virtual |
To be reimplemented to choose which column should be used by the model.
Implemented in QgsLayoutTableSortModel, and QgsLayoutAttributeTableColumnModel.
|
override |
Definition at line 273 of file qgslayoutattributeselectiondialog.cpp.
|
override |
Definition at line 182 of file qgslayoutattributeselectiondialog.cpp.
|
override |
Definition at line 47 of file qgslayoutattributeselectiondialog.cpp.
|
override |
Definition at line 302 of file qgslayoutattributeselectiondialog.cpp.
bool QgsLayoutAttributeTableColumnModelBase::moveRow | ( | int | row, |
ShiftDirection | direction | ||
) |
Moves the specified row up or down in the model.
Used for rearranging the attribute tables columns.
row | row in model representing attribute table column to move |
direction | direction to move the attribute table column |
Definition at line 315 of file qgslayoutattributeselectiondialog.cpp.
|
override |
Definition at line 60 of file qgslayoutattributeselectiondialog.cpp.
|
override |
Definition at line 287 of file qgslayoutattributeselectiondialog.cpp.
|
override |
Definition at line 66 of file qgslayoutattributeselectiondialog.cpp.
|
override |
Definition at line 221 of file qgslayoutattributeselectiondialog.cpp.
|
protected |
Definition at line 114 of file qgslayoutattributeselectiondialog.h.