PythonQtWrapper_QListWidgetItem.h
63 lines
| 3.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QLISTWIDGETITEM_H | ||
#define PYTHONQTWRAPPER_QLISTWIDGETITEM_H | ||||
#include <qlistwidget.h> | ||||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qbrush.h> | ||||
#include <qdatastream.h> | ||||
#include <qfont.h> | ||||
#include <qicon.h> | ||||
#include <qlistwidget.h> | ||||
#include <qsize.h> | ||||
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; } | ||||
QBrush background(QListWidgetItem* theWrappedObject) const; | ||||
Qt::CheckState checkState(QListWidgetItem* theWrappedObject) const; | ||||
QListWidgetItem* clone(QListWidgetItem* theWrappedObject) const; | ||||
QVariant data(QListWidgetItem* theWrappedObject, int role) const; | ||||
Qt::ItemFlags flags(QListWidgetItem* theWrappedObject) const; | ||||
QFont font(QListWidgetItem* theWrappedObject) const; | ||||
QBrush foreground(QListWidgetItem* theWrappedObject) const; | ||||
QIcon icon(QListWidgetItem* theWrappedObject) const; | ||||
bool isHidden(QListWidgetItem* theWrappedObject) const; | ||||
bool isSelected(QListWidgetItem* theWrappedObject) const; | ||||
QListWidget* listWidget(QListWidgetItem* theWrappedObject) const; | ||||
void writeTo(QListWidgetItem* theWrappedObject, QDataStream& out); | ||||
void readFrom(QListWidgetItem* theWrappedObject, QDataStream& in); | ||||
void setBackground(QListWidgetItem* theWrappedObject, const QBrush& brush); | ||||
void setCheckState(QListWidgetItem* theWrappedObject, Qt::CheckState state); | ||||
void setData(QListWidgetItem* theWrappedObject, int role, const QVariant& value); | ||||
void setFlags(QListWidgetItem* theWrappedObject, Qt::ItemFlags flags); | ||||
void setFont(QListWidgetItem* theWrappedObject, const QFont& font); | ||||
void setForeground(QListWidgetItem* theWrappedObject, const QBrush& brush); | ||||
void setHidden(QListWidgetItem* theWrappedObject, bool hide); | ||||
void setIcon(QListWidgetItem* theWrappedObject, const QIcon& icon); | ||||
void setSelected(QListWidgetItem* theWrappedObject, bool select); | ||||
void setSizeHint(QListWidgetItem* theWrappedObject, const QSize& size); | ||||
void setStatusTip(QListWidgetItem* theWrappedObject, const QString& statusTip); | ||||
void setText(QListWidgetItem* theWrappedObject, const QString& text); | ||||
void setTextAlignment(QListWidgetItem* theWrappedObject, int alignment); | ||||
void setToolTip(QListWidgetItem* theWrappedObject, const QString& toolTip); | ||||
void setWhatsThis(QListWidgetItem* theWrappedObject, const QString& whatsThis); | ||||
QSize sizeHint(QListWidgetItem* theWrappedObject) const; | ||||
QString statusTip(QListWidgetItem* theWrappedObject) const; | ||||
QString text(QListWidgetItem* theWrappedObject) const; | ||||
int textAlignment(QListWidgetItem* theWrappedObject) const; | ||||
QString toolTip(QListWidgetItem* theWrappedObject) const; | ||||
int type(QListWidgetItem* theWrappedObject) const; | ||||
QString whatsThis(QListWidgetItem* theWrappedObject) const; | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QLISTWIDGETITEM_H | ||||