KChart
KChartAttributesModel.h
30 * of this class (including setData()) are stored internally and not forwarded to the source model.
81 QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const override;
89 bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::DisplayRole) override;
96 virtual QVariant defaultHeaderData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
Contains KChart macros.
QModelIndex index(int row, int col, const QModelIndex &index) const override
Definition KChartAbstractProxyModel.cpp:71
QModelIndex parent(const QModelIndex &index) const override
Definition KChartAbstractProxyModel.cpp:77
AbstractProxyModel(QObject *parent=nullptr)
This is basically KDAbstractProxyModel, but only the bits that we really need from it.
Definition KChartAbstractProxyModel.cpp:25
virtual QVariant defaultHeaderData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Returns default values for the header data.
Definition KChartAttributesModel.cpp:258
QVariant data(int role) const
Returns the data that were specified at global level, or the default data, or QVariant().
Definition KChartAttributesModel.cpp:284
void setDatasetDimension(int dimension)
Set the dimension of the dataset in the source model.
Definition KChartAttributesModel.cpp:691
bool resetHeaderData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole)
Remove any explicit attributes settings that might have been specified before.
Definition KChartAttributesModel.cpp:436
bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::DisplayRole) override
\reimpl
Definition KChartAttributesModel.cpp:400
void setPaletteType(PaletteType type)
Sets the palettetype used by this attributesmodel.
Definition KChartAttributesModel.cpp:441
void setSourceModel(QAbstractItemModel *sourceModel) override
\reimpl
Definition KChartAttributesModel.cpp:504
bool resetData(const QModelIndex &index, int role=Qt::DisplayRole)
Remove any explicit attributes settings that might have been specified before.
Definition KChartAttributesModel.cpp:395
void setDefaultForRole(int role, const QVariant &value)
Define the default value for a certain role.
Definition KChartAttributesModel.cpp:676
void initFrom(const AttributesModel *other)
Copies the internal data (maps and palette) of another AttributesModel* into this one.
Definition KChartAttributesModel.cpp:77
bool compare(const AttributesModel *other) const
Returns true if both, all of the attributes set, and the palette set is equal in both of the Attribut...
Definition KChartAttributesModel.cpp:108
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::DisplayRole) override
\reimpl
Definition KChartAttributesModel.cpp:382
bool isKnownAttributesRole(int role) const
Returns whether the given role corresponds to one of the known internally used ones.
Definition KChartAttributesModel.cpp:353
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
\reimpl
Definition KChartAttributesModel.cpp:232
Q_SCRIPTABLE QString start(QString train="")
QAbstractItemModel(QObject *parent)
sourceModel
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
DisplayRole
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.