KChart
KChartDatasetProxyModel.h
72 QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const override;
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
QAbstractItemModel(QObject *parent)
sourceModel
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QSortFilterProxyModel(QObject *parent)
DisplayRole
typedef ItemFlags
Orientation
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.