PythonQtWrapper_QItemDelegate.h
43 lines
| 1.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QITEMDELEGATE_H | ||
#define PYTHONQTWRAPPER_QITEMDELEGATE_H | ||||
#include <qitemdelegate.h> | ||||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qabstractitemmodel.h> | ||||
#include <qabstractitemview.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qevent.h> | ||||
#include <qfont.h> | ||||
#include <qitemdelegate.h> | ||||
#include <qitemeditorfactory.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qpainter.h> | ||||
#include <qpixmap.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
#include <qstyleoption.h> | ||||
#include <qwidget.h> | ||||
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 | ||||