##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r96:3170eb771a99
Show More
PythonQtWrapper_QGraphicsLayout.h
56 lines | 2.1 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H
#define PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H
#include <qgraphicslayout.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qcoreevent.h>
#include <qgraphicslayout.h>
#include <qgraphicslayoutitem.h>
#include <qrect.h>
#include <qsize.h>
#include <qsizepolicy.h>
class PythonQtShell_QGraphicsLayout : public QGraphicsLayout
{
public:
PythonQtShell_QGraphicsLayout(QGraphicsLayoutItem* parent = 0):QGraphicsLayout(parent),_wrapper(NULL) {};
virtual int count() const;
virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const;
virtual void invalidate();
virtual QGraphicsLayoutItem* itemAt(int i) const;
virtual void removeAt(int index);
virtual void setGeometry(const QRectF& rect);
virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint) const;
virtual void updateGeometry();
virtual void widgetEvent(QEvent* e);
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QGraphicsLayout : public QGraphicsLayout
{ public:
inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsLayout::getContentsMargins(left, top, right, bottom); }
inline void promoted_widgetEvent(QEvent* e) { QGraphicsLayout::widgetEvent(e); }
inline void promoted_invalidate() { QGraphicsLayout::invalidate(); }
};
class PythonQtWrapper_QGraphicsLayout : public QObject
{ Q_OBJECT
public:
public slots:
QGraphicsLayout* new_QGraphicsLayout(QGraphicsLayoutItem* parent = 0);
void delete_QGraphicsLayout(QGraphicsLayout* obj) { delete obj; }
void getContentsMargins(QGraphicsLayout* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const;
void activate(QGraphicsLayout* theWrappedObject);
void widgetEvent(QGraphicsLayout* theWrappedObject, QEvent* e);
bool isActivated(QGraphicsLayout* theWrappedObject) const;
void setContentsMargins(QGraphicsLayout* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom);
void invalidate(QGraphicsLayout* theWrappedObject);
};
#endif // PYTHONQTWRAPPER_QGRAPHICSLAYOUT_H