Revision control
++ // Copyright (C) 2017 The Qt Company Ltd.
++ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
++
++ #ifndef SVGTEXTOBJECT_H
++ #define SVGTEXTOBJECT_H
++
++ #include <QTextObjectInterface>
++
++ QT_BEGIN_NAMESPACE
++ class QTextDocument;
++ class QTextFormat;
++ class QPainter;
++ class QRectF;
++ class QSizeF;
++ QT_END_NAMESPACE
++
++ //![0] //![1]
++ class SvgTextObject : public QObject, public QTextObjectInterface
++ {
++ Q_OBJECT
++ Q_INTERFACES(QTextObjectInterface)
++ //![1]
++
++ public:
++ QSizeF intrinsicSize(QTextDocument *doc, int posInDocument,
++ const QTextFormat &format) override;
++ void drawObject(QPainter *painter, const QRectF &rect, QTextDocument *doc,
++ int posInDocument, const QTextFormat &format) override;
++ };
++ //![0]
++
++ #endif