#ifndef PYTHONQTWRAPPER_QSTYLEDITEMDELEGATE_H #define PYTHONQTWRAPPER_QSTYLEDITEMDELEGATE_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class PythonQtWrapper_QStyledItemDelegate : public QObject { Q_OBJECT public: public slots: QStyledItemDelegate* new_QStyledItemDelegate(QObject* parent = 0); void delete_QStyledItemDelegate(QStyledItemDelegate* obj) { delete obj; } QWidget* createEditor(QStyledItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; QString displayText(QStyledItemDelegate* theWrappedObject, const QVariant& value, const QLocale& locale) const; QItemEditorFactory* itemEditorFactory(QStyledItemDelegate* theWrappedObject) const; void paint(QStyledItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; void setEditorData(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; void setItemEditorFactory(QStyledItemDelegate* theWrappedObject, QItemEditorFactory* factory); void setModelData(QStyledItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; QSize sizeHint(QStyledItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const; void updateEditorGeometry(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; }; #endif // PYTHONQTWRAPPER_QSTYLEDITEMDELEGATE_H