38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
|
/* generated by rust_qt_binding_generator */
|
||
|
#ifndef TEST_TREE_RUST_H
|
||
|
#define TEST_TREE_RUST_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QAbstractItemModel>
|
||
|
|
||
|
class Persons : public QAbstractItemModel
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
class Private;
|
||
|
private:
|
||
|
Private * const d;
|
||
|
public:
|
||
|
explicit Persons(QObject *parent = nullptr);
|
||
|
~Persons();
|
||
|
|
||
|
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:
|
||
|
private:
|
||
|
};
|
||
|
#endif // TEST_TREE_RUST_H
|