#ifndef PYTHONQTWRAPPER_QITEMDELEGATE_H #define PYTHONQTWRAPPER_QITEMDELEGATE_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class PythonQtWrapper_QItemDelegate : public QObject { Q_OBJECT public: public slots: QItemDelegate* new_QItemDelegate(QObject* parent = 0); void delete_QItemDelegate(QItemDelegate* obj) { delete obj; } QWidget* createEditor(QItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; bool hasClipping(QItemDelegate* theWrappedObject) const; QItemEditorFactory* itemEditorFactory(QItemDelegate* theWrappedObject) const; void paint(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; void setClipping(QItemDelegate* theWrappedObject, bool clip); void setEditorData(QItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; void setItemEditorFactory(QItemDelegate* theWrappedObject, QItemEditorFactory* factory); void setModelData(QItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; QSize sizeHint(QItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const; void updateEditorGeometry(QItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; }; #endif // PYTHONQTWRAPPER_QITEMDELEGATE_H