5#ifndef QQUICKSTYLEDTEXT_H
6#define QQUICKSTYLEDTEXT_H
23#include <QScopedPointer>
24#include <QtQuick/private/qquickpixmap_p.h>
28class QQuickStyledTextImgTag;
36 QQuickStyledTextImgTag() =
default;
37 ~QQuickStyledTextImgTag() =
default;
50 Align align = QQuickStyledTextImgTag::Bottom;
51 QScopedPointer<QQuickPixmap> pix;
57 static void parse(
const QString &string, QTextLayout &layout,
58 QList<QQuickStyledTextImgTag*> &imgTags,
62 bool *fontSizeModified);
65 QQuickStyledText(
const QString &string, QTextLayout &layout,
66 QList<QQuickStyledTextImgTag*> &imgTags,
70 bool *fontSizeModified);
73 QQuickStyledTextPrivate *d;
QList< QQuickStyledTextImgTag * > * imgTags
bool parseCloseTag(const QChar *&ch, const QString &textIn, QString &textOut)
static const QChar singleQuote
void parseImageAttributes(const QChar *&ch, const QString &textIn, QString &textOut)
static const QChar lessThan
void setFontSize(int size, QTextCharFormat &format)
bool parseTag(const QChar *&ch, const QString &textIn, QString &textOut, QTextCharFormat &format)
bool parseAnchorAttributes(const QChar *&ch, const QString &textIn, QTextCharFormat &format)
static const QChar ampersand
static const QChar greaterThan
static const QChar equals
std::pair< QStringView, QStringView > parseAttribute(const QChar *&ch, const QString &textIn)
static const QChar bullet
void parseEntity(const QChar *&ch, const QString &textIn, QString &textOut)
static const QChar doubleQuote
static const QChar lineFeed
QStringView parseValue(const QChar *&ch, const QString &textIn)
static QString toRoman(int value, bool upper)
bool updateImagePositions
bool parseFontAttributes(const QChar *&ch, const QString &textIn, QTextCharFormat &format)
bool parseOrderedListAttributes(const QChar *&ch, const QString &textIn)
static const QChar square
void appendText(const QString &textIn, int start, int length, QString &textOut)
void skipSpace(const QChar *&ch)
QQuickStyledTextPrivate(const QString &t, QTextLayout &l, QList< QQuickStyledTextImgTag * > &imgTags, const QUrl &baseUrl, QQmlContext *context, bool preloadImages, bool *fontSizeModified)
static QString toAlpha(int value, bool upper)
bool parseUnorderedListAttributes(const QChar *&ch, const QString &textIn)
Combined button and popup list for selecting options.
Q_STATIC_LOGGING_CATEGORY(lcAccessibilityCore, "qt.accessibility.core")
#define QQUICKSTYLEDPARSER_COORD_LIMIT