Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickstyledtext_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKSTYLEDTEXT_H
5#define QQUICKSTYLEDTEXT_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QSize>
19#include <QPointF>
20#include <QList>
21#include <QUrl>
22#include <QScopedPointer>
23#include <QtQuick/private/qquickpixmap_p.h>
24
26
29class QString;
30class QQmlContext;
31
33{
34public:
37
43
47 int position = 0;
48 qreal offset = 0.0; // this offset allows us to compensate for flooring reserved space
50 QScopedPointer<QQuickPixmap> pix;
51};
52
54{
55public:
56 static void parse(const QString &string, QTextLayout &layout,
57 QList<QQuickStyledTextImgTag*> &imgTags,
58 const QUrl &baseUrl,
60 bool preloadImages,
61 bool *fontSizeModified);
62
63private:
65 QList<QQuickStyledTextImgTag*> &imgTags,
66 const QUrl &baseUrl,
68 bool preloadImages,
69 bool *fontSizeModified);
71
73};
74
76
77#endif
\inmodule QtCore\reentrant
Definition qpoint.h:217
The QQmlContext class defines a context within a QML engine.
Definition qqmlcontext.h:25
QQuickStyledTextImgTag()=default
~QQuickStyledTextImgTag()=default
QScopedPointer< QQuickPixmap > pix
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\reentrant
Definition qtextlayout.h:70
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
static void * context
GLenum GLuint GLintptr offset
@ Top
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define Q_AUTOTEST_EXPORT
double qreal
Definition qtypes.h:187
QUrl baseUrl
QVBoxLayout * layout