KChart
KChartDatasetProxyModel.cpp
212QVariant DatasetProxyModel::headerData( int section, Qt::Orientation orientation, int role ) const
void setDatasetDescriptionVectors(const KChart::DatasetDescriptionVector &rowConfig, const KChart::DatasetDescriptionVector &columnConfig)
Convenience method to configure rows and columns in one step.
Definition KChartDatasetProxyModel.cpp:53
QVariant data(const QModelIndex &index, int role) const override
Overloaded from base class.
Definition KChartDatasetProxyModel.cpp:202
QModelIndex mapToSource(const QModelIndex &proxyIndex) const override
Implements the mapping from the proxy to the source indexes.
Definition KChartDatasetProxyModel.cpp:93
bool filterAcceptsColumn(int sourceColumn, const QModelIndex &) const override
Decide whether the column is accepted.
Definition KChartDatasetProxyModel.cpp:129
DatasetProxyModel(QObject *parent=nullptr)
Create a DatasetProxyModel.
Definition KChartDatasetProxyModel.cpp:18
void setSourceRootIndex(const QModelIndex &rootIdx)
Set the root index of the table in the source model.
Definition KChartDatasetProxyModel.cpp:278
void setDatasetRowDescriptionVector(const KChart::DatasetDescriptionVector &rowConfig)
Configure the dataset selection for the rows.
Definition KChartDatasetProxyModel.cpp:33
void setSourceModel(QAbstractItemModel *sourceModel) override
Overloaded from base class.
Definition KChartDatasetProxyModel.cpp:262
bool setData(const QModelIndex &index, const QVariant &value, int role) override
Overloaded from base class.
Definition KChartDatasetProxyModel.cpp:207
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Overloaded from base class.
Definition KChartDatasetProxyModel.cpp:212
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override
Implements the mapping from the source to the proxy indexes.
Definition KChartDatasetProxyModel.cpp:75
void setDatasetColumnDescriptionVector(const KChart::DatasetDescriptionVector &columnConfig)
Configure the dataset selection for the columns.
Definition KChartDatasetProxyModel.cpp:43
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
Decide whether the row is accepted.
Definition KChartDatasetProxyModel.cpp:109
void resetDatasetDescriptions()
Reset all dataset description.
Definition KChartDatasetProxyModel.cpp:193
QModelIndex createIndex(int row, int column, const void *ptr) const const
void layoutChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
sourceModel
int column() const const
Qt::ItemFlags flags() const const
void * internalPointer() const const
bool isValid() const const
int row() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
QObject * parent() const const
virtual int columnCount(const QModelIndex &parent) const const override
void invalidate()
virtual int rowCount(const QModelIndex &parent) const const override
virtual void setSourceModel(QAbstractItemModel *sourceModel) override
typedef ItemFlags
Orientation
void * data()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.