Skip to content

Commit

Permalink
Doc: Mark new QGlyphRun methods as new in Qt 6.5
Browse files Browse the repository at this point in the history
Pick-to: 6.5
Change-Id: I5e977a6c7e5356dcdca245f424abd920403c6a72
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
  • Loading branch information
kkoehne committed Jan 12, 2023
1 parent a478d73 commit fbf0c88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gui/text/qglyphrun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ bool QGlyphRun::isEmpty() const
}

/*!
\since 6.5
Returns the string indexes corresponding to each glyph index, if the glyph run has been
constructed from a string and string indexes have been requested from the layout. In this case,
the length of the returned vector will correspond to the length of glyphIndexes(). In other
Expand All @@ -498,6 +500,8 @@ QList<qsizetype> QGlyphRun::stringIndexes() const
}

/*!
\since 6.5
Sets the list of string indexes corresponding to the glyph indexes to \a stringIndexes
See stringIndexes() for more details on the conventions of this list.
Expand All @@ -511,6 +515,8 @@ void QGlyphRun::setStringIndexes(const QList<qsizetype> &stringIndexes)
}

/*!
\since 6.5
Returns the string corresponding to the glyph run, if the glyph run has been created from
a string and the string has been requested from the layout.
Expand All @@ -522,6 +528,8 @@ QString QGlyphRun::sourceString() const
}

/*!
\since 6.5
Set the string corresponding to the glyph run to \a sourceString. If set, the indexes returned
by stringIndexes() should be indexes into this string.
Expand Down

0 comments on commit fbf0c88

Please sign in to comment.