![]() |
Qt 6.x
The Qt SDK
|
Collaboration diagram for QQuickStyledTextPrivate:Classes | |
| struct | List |
Public Types | |
| enum | ListType { Ordered , Unordered } |
| enum | ListFormat { Bullet , Disc , Square , Decimal , LowerAlpha , UpperAlpha , LowerRoman , UpperRoman } |
Static Public Member Functions | |
| static QString | toAlpha (int value, bool upper) |
| static QString | toRoman (int value, bool upper) |
Public Attributes | |
| QString | text |
| QTextLayout & | layout |
| QList< QQuickStyledTextImgTag * > * | imgTags |
| QFont | baseFont |
| QStack< List > | listStack |
| QUrl | baseUrl |
| bool * | fontSizeModified |
| QQmlContext * | context |
| int | nbImages = 0 |
| bool | hasNewLine = true |
| bool | updateImagePositions = false |
| bool | preFormat = false |
| bool | prependSpace = false |
| bool | hasSpace = true |
| bool | preloadImages |
Static Public Attributes | |
| static const QChar | lessThan |
| static const QChar | greaterThan |
| static const QChar | equals |
| static const QChar | singleQuote |
| static const QChar | doubleQuote |
| static const QChar | slash |
| static const QChar | ampersand |
| static const QChar | bullet |
| static const QChar | disc |
| static const QChar | square |
| static const QChar | lineFeed |
| static const QChar | space |
| static const int | tabsize = 6 |
Definition at line 41 of file qquickstyledtext.cpp.
| Enumerator | |
|---|---|
| Bullet | |
| Disc | |
| Square | |
| Decimal | |
| LowerAlpha | |
| UpperAlpha | |
| LowerRoman | |
| UpperRoman | |
Definition at line 45 of file qquickstyledtext.cpp.
| Enumerator | |
|---|---|
| Ordered | |
| Unordered | |
Definition at line 44 of file qquickstyledtext.cpp.
|
inline |
Definition at line 53 of file qquickstyledtext.cpp.
| void QQuickStyledTextPrivate::appendText | ( | const QString & | textIn, |
| int | start, | ||
| int | length, | ||
| QString & | textOut | ||
| ) |
Definition at line 271 of file qquickstyledtext.cpp.
References QString::append(), hasNewLine, hasSpace, prependSpace, and space.
Referenced by parse().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickStyledTextPrivate::parse | ( | ) |
Definition at line 165 of file qquickstyledtext.cpp.
References ampersand, QList< T >::append(), appendText(), ch, QString::constData(), drawText(), QTextLayout::FormatRange::format, hasNewLine, hasSpace, imgTags, QList< T >::isEmpty(), QList< T >::last(), layout, QTextLayout::FormatRange::length, lessThan, lineFeed, QChar::LineSeparator, QChar::Nbsp, parseCloseTag(), parseEntity(), parseTag(), QStack< T >::pop(), preFormat, prependSpace, QStack< T >::push(), QTextLayout::setFormats(), QTextLayout::setText(), QString::size(), QList< T >::size(), slash, space, QTextLayout::FormatRange::start, text, QStack< T >::top(), and updateImagePositions.
Referenced by QQuickStyledText::parse().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QQuickStyledTextPrivate::parseAnchorAttributes | ( | const QChar *& | ch, |
| const QString & | textIn, | ||
| QTextCharFormat & | format | ||
| ) |
Definition at line 627 of file qquickstyledtext.cpp.
References ch, and parseAttribute().
Referenced by parseTag().
Here is the call graph for this function:
Here is the caller graph for this function:| QPair< QStringView, QStringView > QQuickStyledTextPrivate::parseAttribute | ( | const QChar *& | ch, |
| const QString & | textIn | ||
| ) |
Definition at line 714 of file qquickstyledtext.cpp.
References ch, QString::constData(), doubleQuote, equals, greaterThan, QStringView::mid(), parseValue(), singleQuote, and skipSpace().
Referenced by parseAnchorAttributes(), parseFontAttributes(), parseImageAttributes(), parseOrderedListAttributes(), and parseUnorderedListAttributes().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QQuickStyledTextPrivate::parseCloseTag | ( | const QChar *& | ch, |
| const QString & | textIn, | ||
| QString & | textOut | ||
| ) |
Definition at line 442 of file qquickstyledtext.cpp.
References QString::append(), ch, QString::constData(), greaterThan, hasNewLine, hasSpace, QChar::LineSeparator, listStack, QStringView::mid(), preFormat, skipSpace(), and tag.
Referenced by parse().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickStyledTextPrivate::parseEntity | ( | const QChar *& | ch, |
| const QString & | textIn, | ||
| QString & | textOut | ||
| ) |
Definition at line 526 of file qquickstyledtext.cpp.
References ch, QString::constData(), QString::isNull(), QStringView::mid(), QTextHtmlParser::parseEntity(), and qCWarning.
Referenced by parse().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QQuickStyledTextPrivate::parseFontAttributes | ( | const QChar *& | ch, |
| const QString & | textIn, | ||
| QTextCharFormat & | format | ||
| ) |
Definition at line 551 of file qquickstyledtext.cpp.
References ch, QColor::fromString(), parseAttribute(), and setFontSize().
Referenced by parseTag().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickStyledTextPrivate::parseImageAttributes | ( | const QChar *& | ch, |
| const QString & | textIn, | ||
| QString & | textOut | ||
| ) |
Definition at line 645 of file qquickstyledtext.cpp.
References QList< T >::append(), baseUrl, ch, context, QString::endsWith(), QQmlContext::engine(), QTextLayout::font(), QFontMetricsF::horizontalAdvance(), imgTags, QUrl::isLocalFile(), layout, QQuickStyledTextImgTag::Middle, nbImages, QChar::Nbsp, parseAttribute(), preloadImages, qFloor(), QUrl::resolved(), QString::size(), space, QQuickStyledTextImgTag::Top, updateImagePositions, url, and QList< T >::value().
Referenced by parseTag().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QQuickStyledTextPrivate::parseOrderedListAttributes | ( | const QChar *& | ch, |
| const QString & | textIn | ||
| ) |
Definition at line 573 of file qquickstyledtext.cpp.
References ch, Decimal, QQuickStyledTextPrivate::List::format, QQuickStyledTextPrivate::List::level, listStack, LowerAlpha, LowerRoman, Ordered, parseAttribute(), QQuickStyledTextPrivate::List::type, UpperAlpha, and UpperRoman.
Referenced by parseTag().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QQuickStyledTextPrivate::parseTag | ( | const QChar *& | ch, |
| const QString & | textIn, | ||
| QString & | textOut, | ||
| QTextCharFormat & | format | ||
| ) |
Definition at line 295 of file qquickstyledtext.cpp.
References QString::append(), QFont::Bold, Bullet, bullet, ch, QString::constData(), Decimal, Disc, disc, QQuickStyledTextPrivate::List::format, QString::fromLatin1(), greaterThan, hasNewLine, hasSpace, i, QQuickStyledTextPrivate::List::level, QChar::LineSeparator, listStack, LowerAlpha, LowerRoman, QStringView::mid(), QChar::Nbsp, QString::number(), Ordered, parseAnchorAttributes(), parseFontAttributes(), parseImageAttributes(), parseOrderedListAttributes(), parseUnorderedListAttributes(), preFormat, prependSpace, setFontSize(), skipSpace(), slash, Square, square, tabsize, tag, toAlpha(), toRoman(), QQuickStyledTextPrivate::List::type, Unordered, UpperAlpha, and UpperRoman.
Referenced by parse().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QQuickStyledTextPrivate::parseUnorderedListAttributes | ( | const QChar *& | ch, |
| const QString & | textIn | ||
| ) |
Definition at line 602 of file qquickstyledtext.cpp.
References Bullet, ch, Disc, QQuickStyledTextPrivate::List::format, QQuickStyledTextPrivate::List::level, listStack, parseAttribute(), Square, QQuickStyledTextPrivate::List::type, and Unordered.
Referenced by parseTag().
Here is the call graph for this function:
Here is the caller graph for this function:| QStringView QQuickStyledTextPrivate::parseValue | ( | const QChar *& | ch, |
| const QString & | textIn | ||
| ) |
Definition at line 747 of file qquickstyledtext.cpp.
References ch, QString::constData(), doubleQuote, QStringView::mid(), and singleQuote.
Referenced by parseAttribute().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickStyledTextPrivate::setFontSize | ( | int | size, |
| QTextCharFormat & | format | ||
| ) |
Definition at line 285 of file qquickstyledtext.cpp.
References baseFont, fontSizeModified, QFont::pixelSize(), QFont::pointSize(), QFont::pointSizeF(), and qt_defaultDpi().
Referenced by parseFontAttributes(), and parseTag().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 78 of file qquickstyledtext.cpp.
References ch.
Referenced by parseAttribute(), parseCloseTag(), and parseTag().
Here is the caller graph for this function:
|
static |
Definition at line 762 of file qquickstyledtext.cpp.
Referenced by parseTag().
Here is the caller graph for this function:
|
static |
Definition at line 776 of file qquickstyledtext.cpp.
References QByteArray::append(), QString::fromLatin1(), QByteArray::fromRawData(), i, QByteArray::mid(), and numDigits().
Referenced by parseTag().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 108 of file qquickstyledtext.cpp.
Referenced by parse().
| QFont QQuickStyledTextPrivate::baseFont |
Definition at line 89 of file qquickstyledtext.cpp.
Referenced by setFontSize().
| QUrl QQuickStyledTextPrivate::baseUrl |
Definition at line 91 of file qquickstyledtext.cpp.
Referenced by parseImageAttributes().
|
static |
Definition at line 109 of file qquickstyledtext.cpp.
Referenced by parseTag().
| QQmlContext* QQuickStyledTextPrivate::context |
Definition at line 93 of file qquickstyledtext.cpp.
Referenced by parseImageAttributes().
|
static |
Definition at line 110 of file qquickstyledtext.cpp.
Referenced by parseTag().
|
static |
Definition at line 106 of file qquickstyledtext.cpp.
Referenced by parseAttribute(), and parseValue().
|
static |
Definition at line 104 of file qquickstyledtext.cpp.
Referenced by parseAttribute().
| bool* QQuickStyledTextPrivate::fontSizeModified |
Definition at line 92 of file qquickstyledtext.cpp.
Referenced by setFontSize().
|
static |
Definition at line 103 of file qquickstyledtext.cpp.
Referenced by parseAttribute(), parseCloseTag(), and parseTag().
| bool QQuickStyledTextPrivate::hasNewLine = true |
Definition at line 95 of file qquickstyledtext.cpp.
Referenced by appendText(), parse(), parseCloseTag(), and parseTag().
| bool QQuickStyledTextPrivate::hasSpace = true |
Definition at line 99 of file qquickstyledtext.cpp.
Referenced by appendText(), parse(), parseCloseTag(), and parseTag().
| QList<QQuickStyledTextImgTag*>* QQuickStyledTextPrivate::imgTags |
Definition at line 88 of file qquickstyledtext.cpp.
Referenced by parse(), and parseImageAttributes().
| QTextLayout& QQuickStyledTextPrivate::layout |
Definition at line 87 of file qquickstyledtext.cpp.
Referenced by parse(), and parseImageAttributes().
|
static |
Definition at line 102 of file qquickstyledtext.cpp.
Referenced by parse().
|
static |
Definition at line 112 of file qquickstyledtext.cpp.
Referenced by parse().
Definition at line 90 of file qquickstyledtext.cpp.
Referenced by parseCloseTag(), parseOrderedListAttributes(), parseTag(), and parseUnorderedListAttributes().
| int QQuickStyledTextPrivate::nbImages = 0 |
Definition at line 94 of file qquickstyledtext.cpp.
Referenced by parseImageAttributes().
| bool QQuickStyledTextPrivate::preFormat = false |
Definition at line 97 of file qquickstyledtext.cpp.
Referenced by parse(), parseCloseTag(), and parseTag().
| bool QQuickStyledTextPrivate::preloadImages |
Definition at line 100 of file qquickstyledtext.cpp.
Referenced by parseImageAttributes().
| bool QQuickStyledTextPrivate::prependSpace = false |
Definition at line 98 of file qquickstyledtext.cpp.
Referenced by appendText(), parse(), and parseTag().
|
static |
Definition at line 105 of file qquickstyledtext.cpp.
Referenced by parseAttribute(), and parseValue().
|
static |
Definition at line 107 of file qquickstyledtext.cpp.
Referenced by parse(), and parseTag().
|
static |
Definition at line 113 of file qquickstyledtext.cpp.
Referenced by appendText(), parse(), and parseImageAttributes().
|
static |
Definition at line 111 of file qquickstyledtext.cpp.
Referenced by parseTag().
|
static |
Definition at line 114 of file qquickstyledtext.cpp.
Referenced by parseTag().
| QString QQuickStyledTextPrivate::text |
Definition at line 86 of file qquickstyledtext.cpp.
Referenced by parse().
| bool QQuickStyledTextPrivate::updateImagePositions = false |
Definition at line 96 of file qquickstyledtext.cpp.
Referenced by parse(), and parseImageAttributes().