41 lines
1.5 KiB
C++
41 lines
1.5 KiB
C++
/* generated by rust_qt_binding_generator */
|
|
#ifndef TIMESERIES_H
|
|
#define TIMESERIES_H
|
|
|
|
#include <QObject>
|
|
#include <QAbstractItemModel>
|
|
|
|
class TimeSeries;
|
|
|
|
class TimeSeries : public QAbstractItemModel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
class Private;
|
|
private:
|
|
Private * m_d;
|
|
bool m_ownsPrivate;
|
|
explicit TimeSeries(bool owned, QObject *parent);
|
|
public:
|
|
explicit TimeSeries(QObject *parent = nullptr);
|
|
~TimeSeries();
|
|
|
|
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
|
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
|
|
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
|
QModelIndex parent(const QModelIndex &index) const override;
|
|
bool hasChildren(const QModelIndex &parent = QModelIndex()) const override;
|
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
|
bool canFetchMore(const QModelIndex &parent) const override;
|
|
void fetchMore(const QModelIndex &parent) override;
|
|
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
|
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override;
|
|
QHash<int, QByteArray> roleNames() const override;
|
|
signals:
|
|
// new data is ready to be made available to the model with fetchMore()
|
|
void newDataReady(const QModelIndex &parent) const;
|
|
signals:
|
|
};
|
|
#endif // TIMESERIES_H
|