PythonQtWrapper_QDataWidgetMapper.h
65 lines
| 2.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QDATAWIDGETMAPPER_H | ||
#define PYTHONQTWRAPPER_QDATAWIDGETMAPPER_H | ||||
#include <qdatawidgetmapper.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qabstractitemdelegate.h> | ||||
#include <qabstractitemmodel.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qdatawidgetmapper.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QDataWidgetMapper : public QDataWidgetMapper | ||
{ | ||||
public: | ||||
PythonQtShell_QDataWidgetMapper(QObject* parent = 0):QDataWidgetMapper(parent),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void setCurrentIndex(int index); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r28 | class PythonQtPublicPromoter_QDataWidgetMapper : public QDataWidgetMapper | ||
{ public: | ||||
inline void promoted_setCurrentIndex(int index) { QDataWidgetMapper::setCurrentIndex(index); } | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QDataWidgetMapper : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QDataWidgetMapper* new_QDataWidgetMapper(QObject* parent = 0); | ||||
void delete_QDataWidgetMapper(QDataWidgetMapper* obj) { delete obj; } | ||||
florianlink
|
r28 | QAbstractItemDelegate* itemDelegate(QDataWidgetMapper* theWrappedObject) const; | ||
florianlink
|
r73 | QWidget* mappedWidgetAt(QDataWidgetMapper* theWrappedObject, int section) const; | ||
QDataWidgetMapper::SubmitPolicy submitPolicy(QDataWidgetMapper* theWrappedObject) const; | ||||
florianlink
|
r28 | void addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section); | ||
florianlink
|
r73 | QAbstractItemModel* model(QDataWidgetMapper* theWrappedObject) const; | ||
int currentIndex(QDataWidgetMapper* theWrappedObject) const; | ||||
QByteArray mappedPropertyName(QDataWidgetMapper* theWrappedObject, QWidget* widget) const; | ||||
florianlink
|
r13 | void setRootIndex(QDataWidgetMapper* theWrappedObject, const QModelIndex& index); | ||
florianlink
|
r73 | void addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section, const QByteArray& propertyName); | ||
florianlink
|
r24 | void setOrientation(QDataWidgetMapper* theWrappedObject, Qt::Orientation aOrientation); | ||
QModelIndex rootIndex(QDataWidgetMapper* theWrappedObject) const; | ||||
void clearMapping(QDataWidgetMapper* theWrappedObject); | ||||
florianlink
|
r28 | Qt::Orientation orientation(QDataWidgetMapper* theWrappedObject) const; | ||
florianlink
|
r73 | void setItemDelegate(QDataWidgetMapper* theWrappedObject, QAbstractItemDelegate* delegate); | ||
int mappedSection(QDataWidgetMapper* theWrappedObject, QWidget* widget) const; | ||||
florianlink
|
r28 | void removeMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget); | ||
florianlink
|
r73 | void setSubmitPolicy(QDataWidgetMapper* theWrappedObject, QDataWidgetMapper::SubmitPolicy policy); | ||
void setModel(QDataWidgetMapper* theWrappedObject, QAbstractItemModel* model); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QDATAWIDGETMAPPER_H | ||||