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#ifndef QT_NO_CONTEXTMENU
76#include <qpa/qwindowsysteminterface.h>
77void QWindowSystemInterface::handleContextMenuEvent(QWindow *window, bool mouseTriggered,
78 const QPoint &pos, const QPoint &globalPos,
79 Qt::KeyboardModifiers modifiers)
80{
81 handleContextMenuEvent<QWindowSystemInterface::DefaultDelivery>(
82 window, mouseTriggered, pos, globalPos, modifiers);
83}
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)