summaryrefslogtreecommitdiffstats
path: root/src/gui/doc
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2020-08-31 14:42:01 +0200
committerPaul Wicking <paul.wicking@qt.io>2020-09-01 06:13:19 +0200
commitad654870cbbbcd1fddfbe370420f7b92bc0e779e (patch)
tree9d107b9b094725f814be3f6b3e249990e9f058f2 /src/gui/doc
parent319e22cb4af3b6b0ad42ed008a6bba3266b76dba (diff)
Doc: compile textobjectinterface snippet
Done-with: Nico Vertriest <nico.vertriest@qt.io> Task-number: QTBUG-81486 Change-Id: Ibad1ef95b85d5484ee7e9cceee8019d026c10cb9 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/gui/doc')
-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 \