Coverage Report

Created: 2026-03-31 07:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/qtbase/src/gui/compat/removed_api.cpp
Line
Count
Source
1
// Copyright (C) 2023 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
#define QT_GUI_BUILD_REMOVED_API
5
6
#include "qtguiglobal.h"
7
8
QT_USE_NAMESPACE
9
10
#if QT_GUI_REMOVED_SINCE(6, 4)
11
12
#include "qpagesize.h" // removed duplicate declaration of op==
13
                       // (still caused an symbol on some platforms)
14
15
// #include "qotherheader.h"
16
// // implement removed functions from qotherheader.h
17
// order sections alphabetically
18
19
#endif // QT_GUI_REMOVED_SINCE(6, 4)
20
21
#if QT_GUI_REMOVED_SINCE(6, 6)
22
23
#include "qpixmapcache.h" // inlined API
24
25
// #include "qotherheader.h"
26
// // implement removed functions from qotherheader.h
27
// order sections alphabetically
28
29
#endif // QT_GUI_REMOVED_SINCE(6, 6)
30
31
#if QT_GUI_REMOVED_SINCE(6, 7)
32
33
#include "qtextdocument.h"
34
35
bool Qt::mightBeRichText(const QString& text)
36
0
{
37
0
    return Qt::mightBeRichText(qToStringViewIgnoringNull(text));
38
0
}
39
40
// #include "qotherheader.h"
41
// // implement removed functions from qotherheader.h
42
// order sections alphabetically
43
44
#endif // QT_GUI_REMOVED_SINCE(6, 7)
45
46
#if QT_GUI_REMOVED_SINCE(6, 8)
47
48
#include "qpagelayout.h"
49
50
bool QPageLayout::setMargins(const QMarginsF &margins)
51
0
{
52
0
    return setMargins(margins, OutOfBoundsPolicy::Reject);
53
0
}
54
55
bool QPageLayout::setLeftMargin(qreal leftMargin)
56
0
{
57
0
    return setLeftMargin(leftMargin, OutOfBoundsPolicy::Reject);
58
0
}
59
60
bool QPageLayout::setRightMargin(qreal rightMargin)
61
0
{
62
0
    return setRightMargin(rightMargin, OutOfBoundsPolicy::Reject);
63
0
}
64
65
bool QPageLayout::setTopMargin(qreal topMargin)
66
0
{
67
0
    return setTopMargin(topMargin, OutOfBoundsPolicy::Reject);
68
0
}
69
70
bool QPageLayout::setBottomMargin(qreal bottomMargin)
71
0
{
72
0
    return setBottomMargin(bottomMargin, OutOfBoundsPolicy::Reject);
73
0
}
74
75
#ifndef QT_NO_CONTEXTMENU
76
#include <qpa/qwindowsysteminterface.h>
77
void QWindowSystemInterface::handleContextMenuEvent(QWindow *window, bool mouseTriggered,
78
                                                    const QPoint &pos, const QPoint &globalPos,
79
                                                    Qt::KeyboardModifiers modifiers)
80
0
{
81
0
    handleContextMenuEvent<QWindowSystemInterface::DefaultDelivery>(
82
0
        window, mouseTriggered, pos, globalPos, modifiers);
83
0
}
84
#endif // QT_NO_CONTEXTMENU
85
86
// #include "qotherheader.h"
87
// // implement removed functions from qotherheader.h
88
// order sections alphabetically
89
90
#endif // QT_GUI_REMOVED_SINCE(6, 8)
91
92
#if QT_GUI_REMOVED_SINCE(6, 11)
93
94
#include "qpainter.h" // inlined API
95
96
#include "qquaternion.h" // inlined API (also one added Q_WEAK_OVERLOAD)
97
98
99
// #include "qotherheader.h"
100
// // implement removed functions from qotherheader.h
101
// order sections alphabetically
102
103
#endif // QT_GUI_REMOVED_SINCE(6, 11)