aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/qpytextobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'PySide/qpytextobject.h')
-rw-r--r--PySide/qpytextobject.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/PySide/qpytextobject.h b/PySide/qpytextobject.h
new file mode 100644
index 000000000..80c5b7ebd
--- /dev/null
+++ b/PySide/qpytextobject.h
@@ -0,0 +1,16 @@
+#ifndef QPYTEXTOBJECT
+#define QPYTEXTOBJECT
+
+#include <QObject>
+#include <QTextObjectInterface>
+
+class QPyTextObject : public QObject, public QTextObjectInterface
+{
+ Q_OBJECT
+ Q_INTERFACES(QTextObjectInterface)
+public:
+ QPyTextObject(QObject* parent = 0) : QObject(parent) {}
+ void drawObject(QPainter* painter, const QRectF& rect, QTextDocument* doc, int posInDocument, const QTextFormat& format ) = 0;
+ QSizeF intrinsicSize(QTextDocument* doc, int posInDocument, const QTextFormat& format ) = 0;
+};
+#endif \ No newline at end of file