##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QTextItem.h
27 lines | 917 B | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTEXTITEM_H
#define PYTHONQTWRAPPER_QTEXTITEM_H
#include <qpaintengine.h>
#include <QObject>
#include <QVariant>
#include <qfont.h>
class PythonQtWrapper_QTextItem : public QObject
{ Q_OBJECT
public:
Q_ENUMS(RenderFlag )
enum RenderFlag{
RightToLeft = QTextItem::RightToLeft, Overline = QTextItem::Overline, Underline = QTextItem::Underline, StrikeOut = QTextItem::StrikeOut, Dummy = QTextItem::Dummy};
public slots:
QTextItem* new_QTextItem();
void delete_QTextItem(QTextItem* obj) { delete obj; }
qreal ascent(QTextItem* theWrappedObject) const;
qreal descent(QTextItem* theWrappedObject) const;
QFont font(QTextItem* theWrappedObject) const;
QTextItem::RenderFlags renderFlags(QTextItem* theWrappedObject) const;
QString text(QTextItem* theWrappedObject) const;
qreal width(QTextItem* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QTEXTITEM_H