KD Chart 2
[rev.2.6]
|
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. More... | |
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.
|
explicit |
This is basically KDAbstractProxyModel, but only the bits that we really need from it.
Definition at line 41 of file KDChartAbstractProxyModel.cpp.
References MAY_ALIAS.
QModelIndex KDChart::AbstractProxyModel::index | ( | int | row, |
int | col, | ||
const QModelIndex & | index | ||
) | const |
[reimplemented]
Definition at line 87 of file KDChartAbstractProxyModel.cpp.
References mapFromSource(), and mapToSource().
Referenced by KDChart::AttributesModel::setHeaderData(), and KDChart::AttributesModel::setModelData().
QModelIndex KDChart::AbstractProxyModel::mapFromSource | ( | const QModelIndex & | sourceIndex | ) | const |
[reimplemented]
Definition at line 55 of file KDChartAbstractProxyModel.cpp.
Referenced by KDChart::AbstractDiagram::attributesModel(), index(), parent(), and KDChart::AttributesModel::setSourceModel().
QModelIndex KDChart::AbstractProxyModel::mapToSource | ( | const QModelIndex & | proxyIndex | ) | const |
[reimplemented]
Definition at line 68 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 93 of file KDChartAbstractProxyModel.cpp.
References mapFromSource(), and mapToSource().
Referenced by KDChart::AttributesModel::setSourceModel().