Base class for all proxy models used inside KD Chart. More...
#include <KDChartAbstractProxyModel.h>
Public Member Functions | |
AbstractProxyModel (QObject *parent=0) | |
This is basically KDAbstractProxyModel, but only the bits that we really need from it. | |
QModelIndex | index (int row, int col, const QModelIndex &index) const |
QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const |
QModelIndex | mapToSource (const QModelIndex &proxyIndex) const |
QModelIndex | parent (const QModelIndex &index) const |
Base class for all proxy models used inside KD Chart.
Definition at line 36 of file KDChartAbstractProxyModel.h.
KDChart::AbstractProxyModel::AbstractProxyModel | ( | QObject * | parent = 0 |
) | [explicit] |
This is basically KDAbstractProxyModel, but only the bits that we really need from it.
Definition at line 34 of file KDChartAbstractProxyModel.cpp.
QModelIndex KDChart::AbstractProxyModel::index | ( | int | row, | |
int | col, | |||
const QModelIndex & | index | |||
) | const |
[reimplemented]
Definition at line 77 of file KDChartAbstractProxyModel.cpp.
References mapFromSource(), and mapToSource().
Referenced by KDChart::AttributesModel::headerData(), KDChart::AttributesModel::setHeaderData(), and KDChart::AttributesModel::setModelData().
QModelIndex KDChart::AbstractProxyModel::mapFromSource | ( | const QModelIndex & | sourceIndex | ) | const |
[reimplemented]
Definition at line 45 of file KDChartAbstractProxyModel.cpp.
QModelIndex KDChart::AbstractProxyModel::mapToSource | ( | const QModelIndex & | proxyIndex | ) | const |
[reimplemented]
Definition at line 58 of file KDChartAbstractProxyModel.cpp.
Referenced by KDChart::AttributesModel::columnCount(), KDChart::AttributesModel::data(), index(), parent(), KDChart::AttributesModel::rowCount(), and KDChart::AttributesModel::setData().
QModelIndex KDChart::AbstractProxyModel::parent | ( | const QModelIndex & | index | ) | const |
[reimplemented]
Definition at line 83 of file KDChartAbstractProxyModel.cpp.
References mapFromSource(), and mapToSource().