##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QItemDelegate.cpp
74 lines | 2.4 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QItemDelegate.h"
#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>
QItemDelegate* PythonQtWrapper_QItemDelegate::new_QItemDelegate(QObject* parent)
{
return new QItemDelegate(parent); }
QWidget* PythonQtWrapper_QItemDelegate::createEditor(QItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
return theWrappedObject->createEditor(parent, option, index);
}
bool PythonQtWrapper_QItemDelegate::hasClipping(QItemDelegate* theWrappedObject) const
{
return theWrappedObject->hasClipping();
}
QItemEditorFactory* PythonQtWrapper_QItemDelegate::itemEditorFactory(QItemDelegate* theWrappedObject) const
{
return theWrappedObject->itemEditorFactory();
}
void PythonQtWrapper_QItemDelegate::paint(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
theWrappedObject->paint(painter, option, index);
}
void PythonQtWrapper_QItemDelegate::setClipping(QItemDelegate* theWrappedObject, bool clip)
{
theWrappedObject->setClipping(clip);
}
void PythonQtWrapper_QItemDelegate::setEditorData(QItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const
{
theWrappedObject->setEditorData(editor, index);
}
void PythonQtWrapper_QItemDelegate::setItemEditorFactory(QItemDelegate* theWrappedObject, QItemEditorFactory* factory)
{
theWrappedObject->setItemEditorFactory(factory);
}
void PythonQtWrapper_QItemDelegate::setModelData(QItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const
{
theWrappedObject->setModelData(editor, model, index);
}
QSize PythonQtWrapper_QItemDelegate::sizeHint(QItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
return theWrappedObject->sizeHint(option, index);
}
void PythonQtWrapper_QItemDelegate::updateEditorGeometry(QItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
theWrappedObject->updateEditorGeometry(editor, option, index);
}