PythonQtWrapper_QAbstractItemDelegate.h
68 lines
| 4.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QABSTRACTITEMDELEGATE_H | ||
#define PYTHONQTWRAPPER_QABSTRACTITEMDELEGATE_H | ||||
#include <qabstractitemdelegate.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qabstractitemmodel.h> | ||||
#include <qabstractitemview.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qpainter.h> | ||||
#include <qsize.h> | ||||
#include <qstyleoption.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QAbstractItemDelegate : public QAbstractItemDelegate | ||
{ | ||||
public: | ||||
PythonQtShell_QAbstractItemDelegate(QObject* parent = 0):QAbstractItemDelegate(parent),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; | ||||
virtual void setEditorData(QWidget* editor, const QModelIndex& index) const; | ||||
virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; | ||||
virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r28 | class PythonQtPublicPromoter_QAbstractItemDelegate : public QAbstractItemDelegate | ||
{ public: | ||||
inline void promoted_updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const { QAbstractItemDelegate::updateEditorGeometry(editor, option, index); } | ||||
inline void promoted_setEditorData(QWidget* editor, const QModelIndex& index) const { QAbstractItemDelegate::setEditorData(editor, index); } | ||||
inline void promoted_setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const { QAbstractItemDelegate::setModelData(editor, model, index); } | ||||
inline QWidget* promoted_createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const { return QAbstractItemDelegate::createEditor(parent, option, index); } | ||||
inline bool promoted_editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) { return QAbstractItemDelegate::editorEvent(event, model, option, index); } | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QAbstractItemDelegate : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(EndEditHint ) | ||||
enum EndEditHint{ | ||||
NoHint = QAbstractItemDelegate::NoHint, EditNextItem = QAbstractItemDelegate::EditNextItem, EditPreviousItem = QAbstractItemDelegate::EditPreviousItem, SubmitModelCache = QAbstractItemDelegate::SubmitModelCache, RevertModelCache = QAbstractItemDelegate::RevertModelCache}; | ||||
public slots: | ||||
florianlink
|
r24 | QAbstractItemDelegate* new_QAbstractItemDelegate(QObject* parent = 0); | ||
florianlink
|
r13 | void delete_QAbstractItemDelegate(QAbstractItemDelegate* obj) { delete obj; } | ||
florianlink
|
r24 | void updateEditorGeometry(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; | ||
florianlink
|
r13 | void setEditorData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; | ||
void setModelData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; | ||||
florianlink
|
r24 | QWidget* createEditor(QAbstractItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; | ||
bool editorEvent(QAbstractItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QABSTRACTITEMDELEGATE_H | ||||