23 #ifndef KDCHARTDATASETPROXYMODEL_H
24 #define KDCHARTDATASETPROXYMODEL_H
27 #include <QSortFilterProxyModel>
29 #include "kdchart_export.h"
33 class IndexOutOfBoundsException;
65 QModelIndex buddy(
const QModelIndex& index )
const;
67 Qt::ItemFlags flags(
const QModelIndex& index )
const;
69 QModelIndex index(
int row,
int column,
70 const QModelIndex &parent = QModelIndex() )
const;
71 QModelIndex parent(
const QModelIndex &child )
const;
74 QModelIndex mapFromSource (
const QModelIndex & sourceIndex )
const;
77 QModelIndex mapToSource (
const QModelIndex& proxyIndex )
const;
80 QVariant data(
const QModelIndex &index,
int role)
const;
83 bool setData(
const QModelIndex& index,
const QVariant& value,
int role );
86 QVariant headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
89 void setSourceModel(QAbstractItemModel *sourceModel);
93 void setSourceRootIndex(
const QModelIndex& rootIdx);
101 void resetDatasetDescriptions();
116 void setDatasetDescriptionVectors (
125 bool filterAcceptsColumn (
int sourceColumn,
126 const QModelIndex & )
const;
130 bool filterAcceptsRow (
int source_row,
const QModelIndex & source_parent )
const;
135 int mapProxyColumnToSource (
const int& proxyColumn )
const;
138 int mapSourceColumnToProxy (
const int& sourceColumn )
const;
141 int mapProxyRowToSource (
const int& proxyRow )
const;
144 int mapSourceRowToProxy (
const int& sourceRow )
const;
169 void initializeDatasetDecriptors (
181 int mProxyColumnCount;
182 QModelIndex mRootIndex;