7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qobject.h>
9#include <QtGui/qtextformat.h>
10#include <QtGui/qtextlayout.h>
11#include <QtGui/qglyphrun.h>
36 int formatIndex()
const;
40 int objectIndex()
const;
60 virtual void blockInserted(
const QTextBlock &block);
61 virtual void blockRemoved(
const QTextBlock &block);
62 virtual void blockFormatChanged(
const QTextBlock &block);
93 int firstPosition()
const;
94 int lastPosition()
const;
126 Q_GUI_EXPORT
iterator &operator++();
128 Q_GUI_EXPORT
iterator &operator--();
165 bool isValid()
const;
178 int blockFormatIndex()
const;
180 int charFormatIndex()
const;
195 int userState()
const;
196 void setUserState(
int state);
198 int revision()
const;
199 void setRevision(
int rev);
202 void setVisible(
bool visible);
204 int blockNumber()
const;
205 int firstLineNumber()
const;
207 void setLineCount(
int count);
208 int lineCount()
const;
227 Q_GUI_EXPORT
iterator &operator++();
229 Q_GUI_EXPORT
iterator &operator--();
274 int charFormatIndex()
const;
277#if !defined(QT_NO_RAWFONT)
\macro QT_RESTRICTED_CAST_FROM_ASCII
\reentrant \inmodule QtGui
bool atEnd() const
Returns true if the current item is the last item in the text block.
iterator operator++(int)
The postfix ++ operator ({i++}) advances the iterator to the next item in the text block and returns ...
bool operator!=(const iterator &o) const
Returns true if this iterator is different from the other iterator; otherwise returns false.
bool operator==(const iterator &o) const
Returns true if this iterator is the same as the other iterator; otherwise returns false.
constexpr iterator()=default
Constructs an iterator for this text block.
iterator operator--(int)
The postfix ā operator ({iā}) makes the preceding item current and returns an iterator to the old cur...
int fragmentIndex() const
iterator Iterator
Qt-style synonym for QTextBlock::iterator.
QTextBlock(const QTextBlock &o)
Copies the other text block's attributes to this text block.
bool operator<(const QTextBlock &o) const
Returns true if this text block occurs before the other text block in the document.
bool operator==(const QTextBlock &o) const
Returns true if this text block is the same as the other text block.
bool operator!=(const QTextBlock &o) const
Returns true if this text block is different from the other text block.
QTextBlock & operator=(const QTextBlock &o)
Assigns the other text block to this text block.
QTextBlock(QTextDocumentPrivate *priv, int b)
\reentrant \inmodule QtGui
\reentrant \inmodule QtGui
QTextFrameFormat toFrameFormat() const
Returns this format as a frame format.
bool operator==(const QTextFragment &o) const
Returns true if this text fragment is the same (at the same position) as the other text fragment; oth...
bool isValid() const
Returns true if this is a valid text fragment (i.e.
QTextFragment(const QTextDocumentPrivate *priv, int f, int fe)
QTextFragment()
Creates a new empty text fragment.
bool operator!=(const QTextFragment &o) const
Returns true if this text fragment is different (at a different position) from the other text fragmen...
bool operator<(const QTextFragment &o) const
Returns true if this text fragment appears earlier in the document than the other text fragment; othe...
QTextFragment(const QTextFragment &o)
Copies the content (text and format) of the other text fragment to this text fragment.
QTextFragment & operator=(const QTextFragment &o)
Assigns the content (text and format) of the other text fragment to this text fragment.
QTextFrame * currentFrame() const
Returns the current frame pointed to by the iterator, or \nullptr if the iterator currently points to...
bool atEnd() const
Returns true if the current item is the last item in the text frame.
bool operator==(const iterator &o) const
Returns true if the iterator is the same as the other iterator; otherwise returns false.
constexpr iterator() noexcept=default
Constructs an invalid iterator.
iterator operator--(int)
The postfix {ā} operator ({iā}) makes the preceding item in the current frame, and returns an iterato...
iterator operator++(int)
The postfix {++} operator ({i++}) advances the iterator to the next item in the text frame,...
bool operator!=(const iterator &o) const
Returns true if the iterator is different from the other iterator; otherwise returns false.
void setFrameFormat(const QTextFrameFormat &format)
Sets the frame's format.
iterator Iterator
Qt-style synonym for QTextFrame::iterator.
QTextFrameFormat frameFormat() const
Returns the frame's format.
void setFormat(const QTextFormat &format)
Sets the text object's format.
QTextFormat format() const
Returns the text object's format.
Combined button and popup list for selecting options.
static bool contains(const QJsonArray &haystack, unsigned needle)
GLboolean GLboolean GLboolean b
GLenum GLuint GLenum GLsizei length
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLsizei GLsizei GLenum format
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QRegularExpressionMatchIterator &iterator)
SSL_CTX int(* cb)(SSL *ssl, unsigned char **out, unsigned char *outlen, const unsigned char *in, unsigned int inlen, void *arg)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)