##// END OF EJS Templates
added builtin support for variants etc., this will replace the direct includes in PythonQt...
added builtin support for variants etc., this will replace the direct includes in PythonQt git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@129 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r93:7b53f64eae84
Show More
PythonQtWrapper_QIcon.h
48 lines | 2.3 KiB | text/x-c | CLexer
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #ifndef PYTHONQTWRAPPER_QICON_H
#define PYTHONQTWRAPPER_QICON_H
#include <qicon.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 <qdatastream.h>
#include <qicon.h>
#include <qiconengine.h>
#include <qpainter.h>
#include <qpixmap.h>
#include <qrect.h>
#include <qsize.h>
class PythonQtWrapper_QIcon : public QObject
{ Q_OBJECT
public:
Q_ENUMS(Mode State )
enum Mode{
Normal = QIcon::Normal, Disabled = QIcon::Disabled, Active = QIcon::Active, Selected = QIcon::Selected};
enum State{
On = QIcon::On, Off = QIcon::Off};
public slots:
QIcon* new_QIcon();
QIcon* new_QIcon(QIconEngine* engine);
QIcon* new_QIcon(QIconEngineV2* engine);
QIcon* new_QIcon(const QIcon& other);
QIcon* new_QIcon(const QPixmap& pixmap);
QIcon* new_QIcon(const QString& fileName);
void delete_QIcon(QIcon* obj) { delete obj; }
florianlink
recreated wrappers to match current python qt version...
r73 QPixmap pixmap(QIcon* theWrappedObject, int w, int h, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const;
qint64 cacheKey(QIcon* theWrappedObject) const;
bool isNull(QIcon* theWrappedObject) const;
void paint(QIcon* theWrappedObject, QPainter* painter, int x, int y, int w, int h, Qt::Alignment alignment = Qt::AlignCenter, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const;
void paint(QIcon* theWrappedObject, QPainter* painter, const QRect& rect, Qt::Alignment alignment = Qt::AlignCenter, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void addFile(QIcon* theWrappedObject, const QString& fileName, const QSize& size = QSize(), QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off);
QSize actualSize(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const;
florianlink
recreated wrappers to match current python qt version...
r73 void readFrom(QIcon* theWrappedObject, QDataStream& arg__1);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 QPixmap pixmap(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void addPixmap(QIcon* theWrappedObject, const QPixmap& pixmap, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off);
florianlink
recreated wrappers to match current python qt version...
r73 void writeTo(QIcon* theWrappedObject, QDataStream& arg__1);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 QPixmap pixmap(QIcon* theWrappedObject, int extent, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const;
};
#endif // PYTHONQTWRAPPER_QICON_H