diff options
author | Paul Wicking <paul.wicking@qt.io> | 2020-08-31 14:42:01 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2020-09-01 06:13:19 +0200 |
commit | ad654870cbbbcd1fddfbe370420f7b92bc0e779e (patch) | |
tree | 9d107b9b094725f814be3f6b3e249990e9f058f2 /src/gui | |
parent | 319e22cb4af3b6b0ad42ed008a6bba3266b76dba (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')
-rw-r--r-- | src/gui/doc/snippets/qtextobject/qtextobject.pro | 7 | ||||
-rw-r--r-- | src/gui/doc/snippets/qtextobject/textobjectinterface.h | 3 | ||||
-rw-r--r-- | src/gui/doc/snippets/snippets.pro | 1 |
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 \ |