1519 bool seenQt3Richtext =
false;
1523 if (attributes.
count() % 2 == 1)
1528 for (
int i = 0; i < attributes.
count(); i += 2) {
1536 int n = value.
toInt();
1644 seenQt3Richtext =
true;
1649 && seenQt3Richtext) {
1669 #ifndef QT_NO_CSSPARSER 1674 bool alignmentSet =
true;
1685 alignmentSet =
false;
1722 #ifndef QT_NO_CSSPARSER The QColor class provides colors based on RGB, HSV or CMYK values.
void setNamedColor(const QString &name)
Sets the RGB value of this QColor to name, which may be in one of these formats:
const QTextDocument * resourceProvider
const QChar at(int i) const
Returns the character at the given index position in the string.
void setToolTip(const QString &tip)
Sets the tool tip for a fragment of text to the given text.
int toInt(bool *ok=0, int base=10) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 ...
void setProperty(int propertyId, const QVariant &value)
Sets the property specified by the propertyId to the given value.
void setVerticalAlignment(VerticalAlignment alignment)
Sets the vertical alignment used for the characters with this format to the alignment specified...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int count(const T &t) const
Returns the number of occurrences of value in the list.
void setBackground(const QBrush &brush)
Sets the brush use to paint the document's background to the brush specified.
The QString class provides a Unicode character string.
Qt::Alignment alignment() const
Returns the paragraph's alignment.
void parseStyleAttribute(const QString &value, const QTextDocument *resourceProvider)
QTextListFormat::Style listStyle
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
void setAnchorName(const QString &name)
This function is deprecated.
QTextCharFormat charFormat
static bool setIntAttribute(int *destination, const QString &value)
int size() const
Returns the number of characters in this string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
const T & at(int i) const
Returns the item at index position i in the list.
void importStyleSheet(const QString &href)
QTextBlockFormat blockFormat
Q_CORE_EXPORT void qWarning(const char *,...)
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
QVector< QTextHtmlParserNode > nodes
const char * constData() const
Returns a pointer to the data stored in the byte array.
void setAlignment(Qt::Alignment alignment)
Sets the paragraph's alignment.
void setAnchorHref(const QString &value)
Sets the hypertext link for the text format to the given value.
void applyBackgroundImage(const QString &url, const QTextDocument *resourceProvider)
QString toLower() const Q_REQUIRED_RESULT
Returns a lowercase copy of the string.
T & last()
Returns a reference to the last item in the vector.
void setFontFamily(const QString &family)
Sets the text format's font family.
if(void) toggleToolbarShown
void setAnchor(bool anchor)
If anchor is true, text with this format represents an anchor, and is formatted in the appropriate wa...
void setForeground(const QBrush &brush)
Sets the foreground brush to the specified brush.
static bool setFloatAttribute(qreal *destination, const QString &value)
bool isValid() const
Returns true if the color is valid; otherwise returns false.
void setLayoutDirection(Qt::LayoutDirection direction)
Sets the document's layout direction to the specified direction.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
static void setWidthAttribute(QTextLength *width, QString value)