23 #ifndef __KDCHART_ATTRIBUTES_MODEL_H__ 24 #define __KDCHART_ATTRIBUTES_MODEL_H__ 52 PaletteTypeDefault = 0,
53 PaletteTypeRainbow = 1,
54 PaletteTypeSubdued = 2
70 bool compareAttributes(
int role,
const QVariant& a,
const QVariant& b )
const;
73 bool setModelData(
const QVariant value,
int role );
74 QVariant modelData(
int role )
const;
78 bool isKnownAttributesRole(
int role )
const;
87 QVariant data(
int role)
const;
92 QVariant data(
int column,
int role)
const;
95 QVariant headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
97 int rowCount(
const QModelIndex& )
const override;
99 int columnCount(
const QModelIndex& )
const override;
101 QVariant data(
const QModelIndex&,
int role = Qt::DisplayRole)
const override;
103 bool setData (
const QModelIndex & index,
const QVariant & value,
int role = Qt::DisplayRole)
override;
105 bool resetData (
const QModelIndex & index,
int role = Qt::DisplayRole);
107 bool setHeaderData (
int section, Qt::Orientation orientation,
const QVariant & value,
108 int role = Qt::DisplayRole)
override;
110 virtual QVariant defaultHeaderData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
112 bool resetHeaderData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole);
114 void setSourceModel ( QAbstractItemModel* sourceModel )
override;
118 void setDefaultForRole(
int role,
const QVariant& value );
121 void setDatasetDimension(
int dimension );
122 int datasetDimension()
const;
125 void attributesChanged(
const QModelIndex&,
const QModelIndex& );
128 void slotRowsAboutToBeInserted(
const QModelIndex& parent,
int start,
int end );
129 void slotColumnsAboutToBeInserted(
const QModelIndex& parent,
int start,
int end );
130 void slotRowsInserted(
const QModelIndex& parent,
int start,
int end );
131 void slotColumnsInserted(
const QModelIndex& parent,
int start,
int end );
133 void slotRowsAboutToBeRemoved(
const QModelIndex& parent,
int start,
int end );
134 void slotColumnsAboutToBeRemoved(
const QModelIndex& parent,
int start,
int end );
135 void slotRowsRemoved(
const QModelIndex& parent,
int start,
int end );
136 void slotColumnsRemoved(
const QModelIndex& parent,
int start,
int end );
138 void slotDataChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight );
142 QVariant defaultsForRole(
int role )
const;
146 void removeEntriesFromDataMap(
int start,
int end );
147 void removeEntriesFromDirectionDataMaps( Qt::Orientation dir,
int start,
int end );
#define KDCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
A proxy model used for decorating data with attributes.
Base class for all proxy models used inside KD Chart.
Class only listed here to document inheritance of some KDChart classes.