##// END OF EJS Templates
allow to pass invalid QVariants as QVariant parameter of slots...
allow to pass invalid QVariants as QVariant parameter of slots git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@126 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r90:6da6bce07af7
Show More
PythonQtWrapper_QListWidgetItem.h
90 lines | 4.5 KiB | text/x-c | CLexer
/ generated_cpp / com_trolltech_qt_gui / PythonQtWrapper_QListWidgetItem.h
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #ifndef PYTHONQTWRAPPER_QLISTWIDGETITEM_H
#define PYTHONQTWRAPPER_QLISTWIDGETITEM_H
#include <qlistwidget.h>
#include <QObject>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 #include <PythonQt.h>
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include <QVariant>
#include <qbrush.h>
#include <qdatastream.h>
#include <qfont.h>
#include <qicon.h>
#include <qlistwidget.h>
#include <qsize.h>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 class PythonQtShell_QListWidgetItem : public QListWidgetItem
{
public:
PythonQtShell_QListWidgetItem(QListWidget* view = 0, int type = Type):QListWidgetItem(view, type),_wrapper(NULL) {};
PythonQtShell_QListWidgetItem(const QIcon& icon, const QString& text, QListWidget* view = 0, int type = Type):QListWidgetItem(icon, text, view, type),_wrapper(NULL) {};
PythonQtShell_QListWidgetItem(const QString& text, QListWidget* view = 0, int type = Type):QListWidgetItem(text, view, type),_wrapper(NULL) {};
virtual QListWidgetItem* clone() const;
virtual QVariant data(int role) const;
virtual bool operator_less(const QListWidgetItem& other) const;
virtual void read(QDataStream& in);
virtual void setBackgroundColor(const QColor& color);
virtual void setData(int role, const QVariant& value);
virtual void write(QDataStream& out) const;
PythonQtInstanceWrapper* _wrapper;
};
florianlink
upgraded wrappers to current generator version...
r28 class PythonQtPublicPromoter_QListWidgetItem : public QListWidgetItem
{ public:
inline QVariant promoted_data(int role) const { return QListWidgetItem::data(role); }
florianlink
recreated wrappers to match current python qt version...
r73 inline QListWidgetItem* promoted_clone() const { return QListWidgetItem::clone(); }
inline void promoted_setData(int role, const QVariant& value) { QListWidgetItem::setData(role, value); }
florianlink
upgraded wrappers to current generator version...
r28 };
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 class PythonQtWrapper_QListWidgetItem : public QObject
{ Q_OBJECT
public:
Q_ENUMS(ItemType )
enum ItemType{
Type = QListWidgetItem::Type, UserType = QListWidgetItem::UserType};
public slots:
QListWidgetItem* new_QListWidgetItem(QListWidget* view = 0, int type = Type);
QListWidgetItem* new_QListWidgetItem(const QIcon& icon, const QString& text, QListWidget* view = 0, int type = Type);
QListWidgetItem* new_QListWidgetItem(const QString& text, QListWidget* view = 0, int type = Type);
void delete_QListWidgetItem(QListWidgetItem* obj) { delete obj; }
florianlink
recreated wrappers to match current python qt version...
r73 int type(QListWidgetItem* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 void setCheckState(QListWidgetItem* theWrappedObject, Qt::CheckState state);
florianlink
recreated wrappers to match current python qt version...
r73 QBrush foreground(QListWidgetItem* theWrappedObject) const;
QIcon icon(QListWidgetItem* theWrappedObject) const;
bool isHidden(QListWidgetItem* theWrappedObject) const;
QSize sizeHint(QListWidgetItem* theWrappedObject) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QFont font(QListWidgetItem* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 void setStatusTip(QListWidgetItem* theWrappedObject, const QString& statusTip);
florianlink
upgraded wrappers to current generator version...
r28 QString text(QListWidgetItem* theWrappedObject) const;
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 QString toolTip(QListWidgetItem* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 void setBackground(QListWidgetItem* theWrappedObject, const QBrush& brush);
void setIcon(QListWidgetItem* theWrappedObject, const QIcon& icon);
void setHidden(QListWidgetItem* theWrappedObject, bool hide);
florianlink
upgraded wrappers to current generator version...
r28 QString statusTip(QListWidgetItem* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 QVariant data(QListWidgetItem* theWrappedObject, int role) const;
void setWhatsThis(QListWidgetItem* theWrappedObject, const QString& whatsThis);
florianlink
upgraded wrappers to current generator version...
r28 void setFont(QListWidgetItem* theWrappedObject, const QFont& font);
florianlink
recreated wrappers to match current python qt version...
r73 void setTextAlignment(QListWidgetItem* theWrappedObject, int alignment);
QListWidgetItem* clone(QListWidgetItem* theWrappedObject) const;
Qt::ItemFlags flags(QListWidgetItem* theWrappedObject) const;
void readFrom(QListWidgetItem* theWrappedObject, QDataStream& in);
void writeTo(QListWidgetItem* theWrappedObject, QDataStream& out);
void setSelected(QListWidgetItem* theWrappedObject, bool select);
QBrush background(QListWidgetItem* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 Qt::CheckState checkState(QListWidgetItem* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 void setData(QListWidgetItem* theWrappedObject, int role, const QVariant& value);
void setToolTip(QListWidgetItem* theWrappedObject, const QString& toolTip);
void setText(QListWidgetItem* theWrappedObject, const QString& text);
florianlink
upgraded wrappers to current generator version...
r28 bool isSelected(QListWidgetItem* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 QListWidget* listWidget(QListWidgetItem* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 void setForeground(QListWidgetItem* theWrappedObject, const QBrush& brush);
florianlink
recreated wrappers to match current python qt version...
r73 QString whatsThis(QListWidgetItem* theWrappedObject) const;
void setSizeHint(QListWidgetItem* theWrappedObject, const QSize& size);
void setFlags(QListWidgetItem* theWrappedObject, Qt::ItemFlags flags);
int textAlignment(QListWidgetItem* theWrappedObject) const;
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 };
#endif // PYTHONQTWRAPPER_QLISTWIDGETITEM_H