KChart
KChartAttributesModel.cpp
122 QMap< int, QMap< int, QMap<int, QVariant > > >::const_iterator itB = other->d->dataMap.constBegin();
258QVariant AttributesModel::defaultHeaderData( int section, Qt::Orientation orientation, int role ) const
267 return QVariant( (orientation == Qt::Vertical ? QStringLiteral("Series ") : QStringLiteral("Item ")) + QString::number( dataset )) ;
564void AttributesModel::slotColumnsAboutToBeInserted( const QModelIndex& parent, int start, int end )
590void AttributesModel::slotColumnsAboutToBeRemoved( const QModelIndex& parent, int start, int end )
626void AttributesModel::removeEntriesFromDirectionDataMaps( Qt::Orientation dir, int start, int end )
660 Q_ASSERT_X( sourceModel(), "removeColumn", "This should only be triggered if a valid source Model exists!" );
671void AttributesModel::slotDataChanged( const QModelIndex& topLeft, const QModelIndex& bottomRight )
688 Q_ASSERT( defaultsForRole( role ).value<KChart::DataValueAttributes>() == value.value<KChart::DataValueAttributes>() );
Declaring the class KChart::DataValueAttributes.
Base class for all proxy models used inside KChart.
Definition KChartAbstractProxyModel.h:23
QModelIndex index(int row, int col, const QModelIndex &index) const override
Definition KChartAbstractProxyModel.cpp:71
QModelIndex mapToSource(const QModelIndex &proxyIndex) const override
Definition KChartAbstractProxyModel.cpp:52
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override
Definition KChartAbstractProxyModel.cpp:39
A proxy model used for decorating data with attributes.
Definition KChartAttributesModel.h:33
virtual QVariant defaultHeaderData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Returns default values for the header data.
Definition KChartAttributesModel.cpp:258
QVariant data(int role) const
Returns the data that were specified at global level, or the default data, or QVariant().
Definition KChartAttributesModel.cpp:284
void setDatasetDimension(int dimension)
Set the dimension of the dataset in the source model.
Definition KChartAttributesModel.cpp:691
bool resetHeaderData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole)
Remove any explicit attributes settings that might have been specified before.
Definition KChartAttributesModel.cpp:436
bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::DisplayRole) override
\reimpl
Definition KChartAttributesModel.cpp:400
void setPaletteType(PaletteType type)
Sets the palettetype used by this attributesmodel.
Definition KChartAttributesModel.cpp:441
void setSourceModel(QAbstractItemModel *sourceModel) override
\reimpl
Definition KChartAttributesModel.cpp:504
bool resetData(const QModelIndex &index, int role=Qt::DisplayRole)
Remove any explicit attributes settings that might have been specified before.
Definition KChartAttributesModel.cpp:395
void setDefaultForRole(int role, const QVariant &value)
Define the default value for a certain role.
Definition KChartAttributesModel.cpp:676
void initFrom(const AttributesModel *other)
Copies the internal data (maps and palette) of another AttributesModel* into this one.
Definition KChartAttributesModel.cpp:77
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 Attribut...
Definition KChartAttributesModel.cpp:108
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::DisplayRole) override
\reimpl
Definition KChartAttributesModel.cpp:382
bool isKnownAttributesRole(int role) const
Returns whether the given role corresponds to one of the known internally used ones.
Definition KChartAttributesModel.cpp:353
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
\reimpl
Definition KChartAttributesModel.cpp:232
Set of attributes for changing the appearance of bar charts.
Definition KChartBarAttributes.h:21
Diagram attributes dealing with data value labels.
Definition KChartDataValueAttributes.h:42
Set of attributes for changing the appearance of line charts.
Definition KChartLineAttributes.h:21
static const Palette & defaultPalette()
Provide access to the three builtin palettes, one with standard bright colors, one with more subdued ...
Definition KChartPalette.cpp:94
A set of attributes controlling the appearance of pie charts.
Definition KChartPieAttributes.h:22
Attributes to customize the appearance of a column in a stock chart.
Definition KChartStockBarAttributes.h:21
Cell-specific attributes regarding value tracking.
Definition KChartValueTrackerAttributes.h:29
Q_SCRIPTABLE Q_NOREPLY void start()
KIOCORE_EXPORT QString dir(const QString &fileClass)
const QList< QKeySequence > & end()
void beginInsertColumns(const QModelIndex &parent, int first, int last)
void beginInsertRows(const QModelIndex &parent, int first, int last)
void beginRemoveColumns(const QModelIndex &parent, int first, int last)
void beginRemoveRows(const QModelIndex &parent, int first, int last)
void columnsAboutToBeInserted(const QModelIndex &parent, int first, int last)
void columnsAboutToBeRemoved(const QModelIndex &parent, int first, int last)
void columnsInserted(const QModelIndex &parent, int first, int last)
void columnsRemoved(const QModelIndex &parent, int first, int last)
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles)
void endInsertColumns()
void endInsertRows()
void endRemoveColumns()
void endRemoveRows()
void headerDataChanged(Qt::Orientation orientation, int first, int last)
void layoutChanged(const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint)
void modelReset()
void rowsAboutToBeInserted(const QModelIndex &parent, int start, int end)
void rowsAboutToBeRemoved(const QModelIndex &parent, int first, int last)
void rowsInserted(const QModelIndex &parent, int first, int last)
void rowsRemoved(const QModelIndex &parent, int first, int last)
virtual void setSourceModel(QAbstractItemModel *sourceModel)
sourceModel
const QColor & color() const const
const_iterator constBegin() const const
const_iterator constEnd() const const
bool contains(const Key &key) const const
size_type count() const const
iterator end()
iterator find(const Key &key)
iterator insert(const Key &key, const T &value)
Key key(const T &value, const Key &defaultKey) const const
size_type remove(const Key &key)
iterator upperBound(const Key &key)
T value(const Key &key, const T &defaultValue) const const
int column() const const
bool isValid() const const
const QAbstractItemModel * model() const const
int row() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
QObject * parent() const const
QString number(double n, char format, int precision)
DisplayRole
Orientation
void * data()
bool isValid() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.