##// END OF EJS Templates
updated license info...
updated license info git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@124 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r88:9568cb056971
Show More
PythonQtWrapper_QListWidgetItem.h
90 lines | 4.5 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QLISTWIDGETITEM_H
#define PYTHONQTWRAPPER_QLISTWIDGETITEM_H
#include <qlistwidget.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbrush.h>
#include <qdatastream.h>
#include <qfont.h>
#include <qicon.h>
#include <qlistwidget.h>
#include <qsize.h>
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;
};
class PythonQtPublicPromoter_QListWidgetItem : public QListWidgetItem
{ public:
inline QVariant promoted_data(int role) const { return QListWidgetItem::data(role); }
inline QListWidgetItem* promoted_clone() const { return QListWidgetItem::clone(); }
inline void promoted_setData(int role, const QVariant& value) { QListWidgetItem::setData(role, value); }
};
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; }
int type(QListWidgetItem* theWrappedObject) const;
void setCheckState(QListWidgetItem* theWrappedObject, Qt::CheckState state);
QBrush foreground(QListWidgetItem* theWrappedObject) const;
QIcon icon(QListWidgetItem* theWrappedObject) const;
bool isHidden(QListWidgetItem* theWrappedObject) const;
QSize sizeHint(QListWidgetItem* theWrappedObject) const;
QFont font(QListWidgetItem* theWrappedObject) const;
void setStatusTip(QListWidgetItem* theWrappedObject, const QString& statusTip);
QString text(QListWidgetItem* theWrappedObject) const;
QString toolTip(QListWidgetItem* theWrappedObject) const;
void setBackground(QListWidgetItem* theWrappedObject, const QBrush& brush);
void setIcon(QListWidgetItem* theWrappedObject, const QIcon& icon);
void setHidden(QListWidgetItem* theWrappedObject, bool hide);
QString statusTip(QListWidgetItem* theWrappedObject) const;
QVariant data(QListWidgetItem* theWrappedObject, int role) const;
void setWhatsThis(QListWidgetItem* theWrappedObject, const QString& whatsThis);
void setFont(QListWidgetItem* theWrappedObject, const QFont& font);
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;
Qt::CheckState checkState(QListWidgetItem* theWrappedObject) const;
void setData(QListWidgetItem* theWrappedObject, int role, const QVariant& value);
void setToolTip(QListWidgetItem* theWrappedObject, const QString& toolTip);
void setText(QListWidgetItem* theWrappedObject, const QString& text);
bool isSelected(QListWidgetItem* theWrappedObject) const;
QListWidget* listWidget(QListWidgetItem* theWrappedObject) const;
void setForeground(QListWidgetItem* theWrappedObject, const QBrush& brush);
QString whatsThis(QListWidgetItem* theWrappedObject) const;
void setSizeHint(QListWidgetItem* theWrappedObject, const QSize& size);
void setFlags(QListWidgetItem* theWrappedObject, Qt::ItemFlags flags);
int textAlignment(QListWidgetItem* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QLISTWIDGETITEM_H