summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/doc/snippets')
-rw-r--r--src/gui/doc/snippets/qtextobject/qtextobject.pro7
-rw-r--r--src/gui/doc/snippets/qtextobject/textobjectinterface.h3
-rw-r--r--src/gui/doc/snippets/snippets.pro1
3 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/doc/snippets/qtextobject/qtextobject.pro b/src/gui/doc/snippets/qtextobject/qtextobject.pro
new file mode 100644
index 0000000000..737609ba4c
--- /dev/null
+++ b/src/gui/doc/snippets/qtextobject/qtextobject.pro
@@ -0,0 +1,7 @@
+TEMPLATE = lib
+TARGET = textobjectinterface_snippets
+QT += core gui widgets
+
+HEADERS = \
+ textobjectinterface.h
+
diff --git a/src/gui/doc/snippets/qtextobject/textobjectinterface.h b/src/gui/doc/snippets/qtextobject/textobjectinterface.h
index b93cc55ca7..08b14a4eef 100644
--- a/src/gui/doc/snippets/qtextobject/textobjectinterface.h
+++ b/src/gui/doc/snippets/qtextobject/textobjectinterface.h
@@ -47,6 +47,8 @@
** $QT_END_LICENSE$
**
****************************************************************************/
+#include <QObject>
+#include <QTextObjectInterface>
//! [0]
class SvgTextObject : public QObject, public QTextObjectInterface
@@ -54,3 +56,4 @@ class SvgTextObject : public QObject, public QTextObjectInterface
Q_OBJECT
Q_INTERFACES(QTextObjectInterface)
//! [0]
+};
diff --git a/src/gui/doc/snippets/snippets.pro b/src/gui/doc/snippets/snippets.pro
index 158fc0b36d..fc4d1c77ac 100644
--- a/src/gui/doc/snippets/snippets.pro
+++ b/src/gui/doc/snippets/snippets.pro
@@ -18,6 +18,7 @@ contains(QT_BUILD_PARTS, tests) {
qfontdatabase \
qimagewriter \
qstatustipevent \
+ qtextobject \
textblock-formats \
textblock-fragments \
textdocument-blocks \