11#include <QAbstractItemModel>
14#include "ChartDataSource.h"
29 Q_PROPERTY(
int role READ role WRITE setRole NOTIFY roleChanged)
31 void setRole(
int role);
32 Q_SIGNAL
void roleChanged();
34 Q_PROPERTY(
QString roleName READ roleName WRITE setRoleName NOTIFY roleNameChanged)
36 void setRoleName(
const QString &name);
37 Q_SIGNAL
void roleNameChanged();
39 Q_PROPERTY(
int column READ column WRITE setColumn NOTIFY columnChanged)
41 void setColumn(
int column);
42 Q_SIGNAL
void columnChanged();
47 Q_SIGNAL
void modelChanged();
49 Q_PROPERTY(
bool indexColumns READ indexColumns WRITE setIndexColumns NOTIFY indexColumnsChanged)
50 bool indexColumns()
const;
51 void setIndexColumns(
bool index);
52 Q_SIGNAL
void indexColumnsChanged();
54 int itemCount()
const override;
55 QVariant item(
int index)
const override;
60 Q_SLOT
void onMinimumChanged();
61 Q_SLOT
void onMaximumChanged();
63 mutable int m_role = -1;
66 bool m_indexColumns =
false;
Abstract base class for data sources.
A data source that reads data from a QAbstractItemModel.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:53 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.