Coverage Report

Created: 2026-08-14 08:24

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/qtbase/src/gui/text/qtextlist.h
Line
Count
Source
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
11
QT_BEGIN_NAMESPACE
12
13
14
class QTextListPrivate;
15
class QTextCursor;
16
17
class Q_GUI_EXPORT QTextList : public QTextBlockGroup
18
{
19
0
    Q_OBJECT
20
0
public:
21
0
    explicit QTextList(QTextDocument *doc);
22
0
    ~QTextList();
23
0
24
0
    int count() const;
25
0
26
0
    QTextBlock item(int i) const;
27
0
28
0
    int itemNumber(const QTextBlock &) const;
29
0
    QString itemText(const QTextBlock &) const;
30
0
31
0
    void removeItem(int i);
32
0
    void remove(const QTextBlock &);
33
0
34
0
    void add(const QTextBlock &block);
35
0
36
0
    inline void setFormat(const QTextListFormat &format);
37
0
    QTextListFormat format() const { return QTextObject::format().toListFormat(); }
38
39
private:
40
    Q_DISABLE_COPY(QTextList)
41
0
    Q_DECLARE_PRIVATE(QTextList)
Unexecuted instantiation: QTextList::d_func()
Unexecuted instantiation: QTextList::d_func() const
42
0
};
43
0
44
0
inline void QTextList::setFormat(const QTextListFormat &aformat)
45
0
{ QTextObject::setFormat(aformat); }
46
47
QT_END_NAMESPACE
48
49
#endif // QTEXTLIST_H