#ifndef PYTHONQTWRAPPER_QPERSISTENTMODELINDEX_H #define PYTHONQTWRAPPER_QPERSISTENTMODELINDEX_H #include #include #include #include class PythonQtWrapper_QPersistentModelIndex : public QObject { Q_OBJECT public: public slots: QPersistentModelIndex* new_QPersistentModelIndex(); QPersistentModelIndex* new_QPersistentModelIndex(const QModelIndex& index); QPersistentModelIndex* new_QPersistentModelIndex(const QPersistentModelIndex& other); void delete_QPersistentModelIndex(QPersistentModelIndex* obj) { delete obj; } QModelIndex child(QPersistentModelIndex* theWrappedObject, int row, int column) const; int column(QPersistentModelIndex* theWrappedObject) const; QVariant data(QPersistentModelIndex* theWrappedObject, int role = Qt::DisplayRole) const; Qt::ItemFlags flags(QPersistentModelIndex* theWrappedObject) const; qint64 internalId(QPersistentModelIndex* theWrappedObject) const; bool isValid(QPersistentModelIndex* theWrappedObject) const; const QAbstractItemModel* model(QPersistentModelIndex* theWrappedObject) const; QModelIndex operator_cast_QModelIndex(QPersistentModelIndex* theWrappedObject) const; bool operator_less(QPersistentModelIndex* theWrappedObject, const QPersistentModelIndex& other) const; bool operator_equal(QPersistentModelIndex* theWrappedObject, const QModelIndex& other) const; bool operator_equal(QPersistentModelIndex* theWrappedObject, const QPersistentModelIndex& other) const; QModelIndex parent(QPersistentModelIndex* theWrappedObject) const; int row(QPersistentModelIndex* theWrappedObject) const; QModelIndex sibling(QPersistentModelIndex* theWrappedObject, int row, int column) const; }; #endif // PYTHONQTWRAPPER_QPERSISTENTMODELINDEX_H