#ifndef PYTHONQTWRAPPER_QMODELINDEX_H #define PYTHONQTWRAPPER_QMODELINDEX_H #include #include #include #include #include class PythonQtWrapper_QModelIndex : public QObject { Q_OBJECT public: public slots: QModelIndex* new_QModelIndex(); QModelIndex* new_QModelIndex(const QModelIndex& other); void delete_QModelIndex(QModelIndex* obj) { delete obj; } Qt::ItemFlags flags(QModelIndex* theWrappedObject) const; void* internalPointer(QModelIndex* theWrappedObject) const; QVariant data(QModelIndex* theWrappedObject, int role = Qt::DisplayRole) const; qint64 internalId(QModelIndex* theWrappedObject) const; QModelIndex sibling(QModelIndex* theWrappedObject, int row, int column) const; bool operator_equal(QModelIndex* theWrappedObject, const QModelIndex& other) const; int column(QModelIndex* theWrappedObject) const; bool isValid(QModelIndex* theWrappedObject) const; const QAbstractItemModel* model(QModelIndex* theWrappedObject) const; int row(QModelIndex* theWrappedObject) const; QModelIndex child(QModelIndex* theWrappedObject, int row, int column) const; bool operator_less(QModelIndex* theWrappedObject, const QModelIndex& other) const; QModelIndex parent(QModelIndex* theWrappedObject) const; QString toString(QModelIndex*); }; #endif // PYTHONQTWRAPPER_QMODELINDEX_H