Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
removed_api.cpp
Go to the documentation of this file.
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
8QT_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
35bool Qt::mightBeRichText(const QString& text)
36{
37 return Qt::mightBeRichText(qToStringViewIgnoringNull(text));
38}
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
50bool QPageLayout::setMargins(const QMarginsF &margins)
51{
52 return setMargins(margins, OutOfBoundsPolicy::Reject);
53}
54
55bool QPageLayout::setLeftMargin(qreal leftMargin)
56{
57 return setLeftMargin(leftMargin, OutOfBoundsPolicy::Reject);
58}
59
60bool QPageLayout::setRightMargin(qreal rightMargin)
61{
62 return setRightMargin(rightMargin, OutOfBoundsPolicy::Reject);
63}
64
65bool QPageLayout::setTopMargin(qreal topMargin)
66{
67 return setTopMargin(topMargin, OutOfBoundsPolicy::Reject);
68}
69
70bool QPageLayout::setBottomMargin(qreal bottomMargin)
71{
72 return setBottomMargin(bottomMargin, OutOfBoundsPolicy::Reject);
73}
74
75// #include "qotherheader.h"
76// // implement removed functions from qotherheader.h
77// order sections alphabetically
78
79#endif // QT_GUI_REMOVED_SINCE(6, 8)
80
81#if QT_GUI_REMOVED_SINCE(6, 11)
82
83#include "qpainter.h" // inlined API
84
85#include "qquaternion.h" // inlined API (also one added Q_WEAK_OVERLOAD)
86
87
88// #include "qotherheader.h"
89// // implement removed functions from qotherheader.h
90// order sections alphabetically
91
92#endif // QT_GUI_REMOVED_SINCE(6, 11)