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>bb10
parent
319e22cb4a
commit
ad654870cb
|
|
@ -0,0 +1,7 @@
|
|||
TEMPLATE = lib
|
||||
TARGET = textobjectinterface_snippets
|
||||
QT += core gui widgets
|
||||
|
||||
HEADERS = \
|
||||
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]
|
||||
};
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ contains(QT_BUILD_PARTS, tests) {
|
|||
qfontdatabase \
|
||||
qimagewriter \
|
||||
qstatustipevent \
|
||||
qtextobject \
|
||||
textblock-formats \
|
||||
textblock-fragments \
|
||||
textdocument-blocks \
|
||||
|
|
|
|||
Loading…
Reference in New Issue