Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtextlist.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QTEXTLIST_H
5#define QTEXTLIST_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtGui/qtextobject.h>
9#include <QtCore/qobject.h>
10
12
13
15class QTextCursor;
16
17class Q_GUI_EXPORT QTextList : public QTextBlockGroup
18{
20public:
21 explicit QTextList(QTextDocument *doc);
22 ~QTextList();
23
24 int count() const;
25
26 QTextBlock item(int i) const;
27
28 int itemNumber(const QTextBlock &) const;
29 QString itemText(const QTextBlock &) const;
30
31 void removeItem(int i);
32 void remove(const QTextBlock &);
33
34 void add(const QTextBlock &block);
35
36 inline void setFormat(const QTextListFormat &format);
38
39private:
40 Q_DISABLE_COPY(QTextList)
41 Q_DECLARE_PRIVATE(QTextList)
42};
43
44inline void QTextList::setFormat(const QTextListFormat &aformat)
45{ QTextObject::setFormat(aformat); }
46
48
49#endif // QTEXTLIST_H
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\reentrant
Definition qtextobject.h:53
\reentrant
\reentrant \inmodule QtGui
Definition qtextcursor.h:30
\reentrant \inmodule QtGui
QTextListFormat toListFormat() const
Returns this format as a list format.
\reentrant
Definition qtextlist.h:18
QTextListFormat format() const
Returns the list's format.
Definition qtextlist.h:37
void setFormat(const QTextListFormat &format)
Sets the list's format to format.
Definition qtextlist.h:44
void setFormat(const QTextFormat &format)
Sets the text object's format.
QTextFormat format() const
Returns the text object's format.
widget setFormat(format)
Combined button and popup list for selecting options.
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum format
static void add(QPainterPath &path, const QWingedEdge &list, int edge, QPathEdge::Traversal traversal)
#define Q_OBJECT
settings remove("monkey")
QGraphicsItem * item