KD Chart 2
[rev.2.7]
|
Internally used class just adding a special constructor used by AbstractDiagram. More...
#include <KDChartAbstractDiagram.h>
Public Types | |
enum | PaletteType { PaletteTypeDefault = 0, PaletteTypeRainbow = 1, PaletteTypeSubdued = 2 } |
Signals | |
void | attributesChanged (const QModelIndex &, const QModelIndex &) |
Public Member Functions | |
int | columnCount (const QModelIndex &) const override |
[reimplemented] More... | |
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 AttributeModels. More... | |
bool | compareAttributes (int role, const QVariant &a, const QVariant &b) const |
QVariant | data (int role) const |
Returns the data that were specified at global level, or the default data, or QVariant(). More... | |
QVariant | data (int column, int role) const |
Returns the data that were specified at per column level, or the globally set data, or the default data, or QVariant(). More... | |
QVariant | data (const QModelIndex &, int role=Qt::DisplayRole) const override |
[reimplemented] More... | |
int | datasetDimension () const |
virtual QVariant | defaultHeaderData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
Returns default values for the header data. More... | |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
[reimplemented] More... | |
QModelIndex | index (int row, int col, const QModelIndex &index) const override |
void | initFrom (const AttributesModel *other) |
Copies the internal data (maps and palette) of another AttributesModel* into this one. More... | |
bool | isKnownAttributesRole (int role) const |
Returns whether the given role corresponds to one of the known internally used ones. More... | |
QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const override |
QModelIndex | mapToSource (const QModelIndex &proxyIndex) const override |
QVariant | modelData (int role) const |
PaletteType | paletteType () const |
QModelIndex | parent (const QModelIndex &index) const override |
PrivateAttributesModel (QAbstractItemModel *model, QObject *parent=0) | |
bool | resetData (const QModelIndex &index, int role=Qt::DisplayRole) |
Remove any explicit attributes settings that might have been specified before. More... | |
bool | resetHeaderData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) |
Remove any explicit attributes settings that might have been specified before. More... | |
int | rowCount (const QModelIndex &) const override |
[reimplemented] More... | |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::DisplayRole) override |
[reimplemented] More... | |
void | setDatasetDimension (int dimension) |
Set the dimension of the dataset in the source model. More... | |
void | setDefaultForRole (int role, const QVariant &value) |
Define the default value for a certain role. More... | |
bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::DisplayRole) override |
[reimplemented] More... | |
bool | setModelData (const QVariant value, int role) |
void | setPaletteType (PaletteType type) |
Sets the palettetype used by this attributesmodel. More... | |
void | setSourceModel (QAbstractItemModel *sourceModel) override |
[reimplemented] More... | |
Internally used class just adding a special constructor used by AbstractDiagram.
Definition at line 734 of file KDChartAbstractDiagram.h.
|
inherited |
Enumerator | |
---|---|
PaletteTypeDefault | |
PaletteTypeRainbow | |
PaletteTypeSubdued |
Definition at line 51 of file KDChartAttributesModel.h.
|
explicit |
Definition at line 737 of file KDChartAbstractDiagram.h.
|
signalinherited |
|
overrideinherited |
[reimplemented]
Definition at line 510 of file KDChartAttributesModel.cpp.
References KDChart::AbstractProxyModel::mapToSource().
Referenced by KDChart::AttributesModel::setHeaderData(), and KDChart::AttributesModel::setModelData().
|
inherited |
Returns true if both, all of the attributes set, and the palette set is equal in both of the AttributeModels.
Definition at line 123 of file KDChartAttributesModel.cpp.
References KDChart::AttributesModel::compareAttributes(), d, and KDChart::AttributesModel::paletteType().
Referenced by KDChart::AbstractDiagram::compare().
|
inherited |
Definition at line 185 of file KDChartAttributesModel.cpp.
References KDChart::BarAttributesRole, KDChart::DataHiddenRole, KDChart::DatasetBrushRole, KDChart::DatasetPenRole, KDChart::DataValueLabelAttributesRole, KDChart::AttributesModel::isKnownAttributesRole(), KDChart::LineAttributesRole, KDChart::PieAttributesRole, KDChart::StockBarAttributesRole, KDChart::ThreeDAttributesRole, KDChart::ThreeDBarAttributesRole, KDChart::ThreeDLineAttributesRole, KDChart::ThreeDPieAttributesRole, and KDChart::ValueTrackerAttributesRole.
Referenced by KDChart::AttributesModel::compare(), and KDChart::AttributesModel::initFrom().
|
inherited |
Returns the data that were specified at global level, or the default data, or QVariant().
Definition at line 299 of file KDChartAttributesModel.cpp.
References KDChart::AttributesModel::isKnownAttributesRole(), and KDChart::AttributesModel::modelData().
Referenced by KDChart::AbstractDiagram::brush(), KDChart::AttributesModel::data(), KDChart::AbstractDiagram::dataValueAttributes(), and KDChart::AbstractDiagram::pen().
|
inherited |
Returns the data that were specified at per column level, or the globally set data, or the default data, or QVariant().
Definition at line 314 of file KDChartAttributesModel.cpp.
References KDChart::AttributesModel::data(), KDChart::AttributesModel::headerData(), and KDChart::AttributesModel::isKnownAttributesRole().
|
overrideinherited |
[reimplemented]
Definition at line 330 of file KDChartAttributesModel.cpp.
References d, KDChart::AttributesModel::data(), and KDChart::AbstractProxyModel::mapToSource().
|
inherited |
Definition at line 712 of file KDChartAttributesModel.cpp.
References d.
|
virtualinherited |
Returns default values for the header data.
Definition at line 273 of file KDChartAttributesModel.cpp.
References d, KDChart::DatasetBrushRole, KDChart::DatasetPenRole, KDChart::AttributesModel::headerData(), and KDChart::AttributesModel::modelData().
Referenced by KDChart::AttributesModel::headerData().
|
overrideinherited |
[reimplemented]
Definition at line 247 of file KDChartAttributesModel.cpp.
References d, and KDChart::AttributesModel::defaultHeaderData().
Referenced by KDChart::AttributesModel::data(), KDChart::AttributesModel::defaultHeaderData(), KDChart::AbstractDiagram::itemRowLabels(), and KDChart::AttributesModel::setHeaderData().
|
overrideinherited |
[reimplemented]
Definition at line 87 of file KDChartAbstractProxyModel.cpp.
References KDChart::AbstractProxyModel::mapFromSource(), and KDChart::AbstractProxyModel::mapToSource().
Referenced by KDChart::AttributesModel::setHeaderData(), and KDChart::AttributesModel::setModelData().
|
inherited |
Copies the internal data (maps and palette) of another AttributesModel* into this one.
Definition at line 92 of file KDChartAttributesModel.cpp.
References KDChart::AttributesModel::compareAttributes(), and d.
Referenced by KDChart::AbstractDiagram::setModel().
|
inherited |
Returns whether the given role corresponds to one of the known internally used ones.
Definition at line 368 of file KDChartAttributesModel.cpp.
References KDChart::BarAttributesRole, d, KDChart::DataHiddenRole, KDChart::DatasetBrushRole, KDChart::DatasetPenRole, KDChart::DataValueLabelAttributesRole, KDChart::LineAttributesRole, KDChart::PieAttributesRole, KDChart::StockBarAttributesRole, KDChart::ThreeDAttributesRole, KDChart::ThreeDBarAttributesRole, KDChart::ThreeDLineAttributesRole, KDChart::ThreeDPieAttributesRole, and KDChart::ValueTrackerAttributesRole.
Referenced by KDChart::AttributesModel::compareAttributes(), KDChart::AttributesModel::data(), KDChart::AttributesModel::setData(), and KDChart::AttributesModel::setHeaderData().
|
overrideinherited |
[reimplemented]
Definition at line 55 of file KDChartAbstractProxyModel.cpp.
Referenced by KDChart::AbstractDiagram::attributesModel(), KDChart::AbstractProxyModel::index(), KDChart::AbstractProxyModel::parent(), and KDChart::AttributesModel::setSourceModel().
|
overrideinherited |
[reimplemented]
Definition at line 68 of file KDChartAbstractProxyModel.cpp.
Referenced by KDChart::AttributesModel::columnCount(), KDChart::AttributesModel::data(), KDChart::AbstractProxyModel::index(), KDChart::AbstractProxyModel::parent(), KDChart::AttributesModel::rowCount(), and KDChart::AttributesModel::setData().
|
inherited |
Definition at line 496 of file KDChartAttributesModel.cpp.
References d.
Referenced by KDChart::AttributesModel::data(), KDChart::AbstractDiagram::dataValueAttributes(), KDChart::AttributesModel::defaultHeaderData(), and KDChart::AbstractDiagram::isHidden().
|
inherited |
Definition at line 477 of file KDChartAttributesModel.cpp.
References d.
Referenced by KDChart::AttributesModel::compare().
|
overrideinherited |
[reimplemented]
Definition at line 94 of file KDChartAbstractProxyModel.cpp.
References KDChart::AbstractProxyModel::mapFromSource(), and KDChart::AbstractProxyModel::mapToSource().
Referenced by KDChart::AttributesModel::setSourceModel().
|
inherited |
Remove any explicit attributes settings that might have been specified before.
Definition at line 410 of file KDChartAttributesModel.cpp.
References KDChart::AttributesModel::setData().
|
inherited |
Remove any explicit attributes settings that might have been specified before.
Definition at line 451 of file KDChartAttributesModel.cpp.
References KDChart::AttributesModel::setHeaderData().
|
overrideinherited |
[reimplemented]
Definition at line 501 of file KDChartAttributesModel.cpp.
References KDChart::AbstractProxyModel::mapToSource().
Referenced by KDChart::AbstractDiagram::itemRowLabels(), numSignificantDecimalPlaces(), KDChart::AttributesModel::setHeaderData(), and KDChart::AttributesModel::setModelData().
|
overrideinherited |
[reimplemented]
Definition at line 397 of file KDChartAttributesModel.cpp.
References KDChart::AttributesModel::attributesChanged(), d, KDChart::AttributesModel::isKnownAttributesRole(), and KDChart::AbstractProxyModel::mapToSource().
Referenced by KDChart::AttributesModel::resetData(), KDChart::BarDiagram::setBarAttributes(), KDChart::AbstractDiagram::setBrush(), and KDChart::AbstractDiagram::setPen().
|
inherited |
Set the dimension of the dataset in the source model.
Definition at line 706 of file KDChartAttributesModel.cpp.
References d.
|
inherited |
Define the default value for a certain role.
Passing a default-constructed QVariant is equivalent to removing the default.
Definition at line 691 of file KDChartAttributesModel.cpp.
References d.
Referenced by KDChart::AttributesModel::AttributesModel(), and KDChart::TernaryLineDiagram::TernaryLineDiagram().
|
overrideinherited |
[reimplemented]
Definition at line 415 of file KDChartAttributesModel.cpp.
References KDChart::AttributesModel::attributesChanged(), KDChart::AttributesModel::columnCount(), d, KDChart::AttributesModel::headerData(), KDChart::AbstractProxyModel::index(), KDChart::AttributesModel::isKnownAttributesRole(), and KDChart::AttributesModel::rowCount().
Referenced by KDChart::AttributesModel::resetHeaderData().
|
inherited |
Definition at line 482 of file KDChartAttributesModel.cpp.
References KDChart::AttributesModel::attributesChanged(), KDChart::AttributesModel::columnCount(), d, KDChart::AbstractProxyModel::index(), and KDChart::AttributesModel::rowCount().
Referenced by KDChart::AbstractDiagram::setBrush(), and KDChart::AbstractDiagram::setPen().
|
inherited |
Sets the palettetype used by this attributesmodel.
Definition at line 456 of file KDChartAttributesModel.cpp.
References d, KDChart::Palette::defaultPalette(), KDChart::AttributesModel::PaletteTypeDefault, KDChart::AttributesModel::PaletteTypeRainbow, KDChart::AttributesModel::PaletteTypeSubdued, KDChart::Palette::rainbowPalette(), and KDChart::Palette::subduedPalette().
|
overrideinherited |
[reimplemented]
Definition at line 519 of file KDChartAttributesModel.cpp.
References d, KDChart::AbstractProxyModel::mapFromSource(), and KDChart::AbstractProxyModel::parent().
Referenced by KDChart::AttributesModel::AttributesModel().