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>
This commit is contained in:
Paul Wicking 2020-08-31 14:42:01 +02:00
parent 319e22cb4a
commit ad654870cb
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,7 @@
TEMPLATE = lib
TARGET = textobjectinterface_snippets
QT += core gui widgets
HEADERS = \
textobjectinterface.h

View File

@ -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]
};

View File

@ -18,6 +18,7 @@ contains(QT_BUILD_PARTS, tests) {
qfontdatabase \
qimagewriter \
qstatustipevent \
qtextobject \
textblock-formats \
textblock-fragments \
textdocument-blocks \