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
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
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
36{
38}
39
40#endif // QT_GUI_REMOVED_SINCE(6, 7)
41
42#if QT_GUI_REMOVED_SINCE(6, 8)
43
44#include "qpagelayout.h"
45
46bool QPageLayout::setMargins(const QMarginsF &margins)
47{
49}
50
51bool QPageLayout::setLeftMargin(qreal leftMargin)
52{
53 return setLeftMargin(leftMargin, OutOfBoundsPolicy::Reject);
54}
55
56bool QPageLayout::setRightMargin(qreal rightMargin)
57{
58 return setRightMargin(rightMargin, OutOfBoundsPolicy::Reject);
59}
60
61bool QPageLayout::setTopMargin(qreal topMargin)
62{
63 return setTopMargin(topMargin, OutOfBoundsPolicy::Reject);
64}
65
66// #include "qotherheader.h"
67// // implement removed functions from qotherheader.h
68// order sections alphabetically
69
70#endif // QT_GUI_REMOVED_SINCE(6, 8)
\inmodule QtCore
Definition qmargins.h:270
bool setTopMargin(qreal topMargin, OutOfBoundsPolicy outOfBoundsPolicy=OutOfBoundsPolicy::Reject)
Sets the top page margin of the page layout to topMargin.
bool setRightMargin(qreal rightMargin, OutOfBoundsPolicy outOfBoundsPolicy=OutOfBoundsPolicy::Reject)
Sets the right page margin of the page layout to rightMargin.
QMarginsF margins() const
Returns the margins of the page layout using the currently set units.
bool setLeftMargin(qreal leftMargin, OutOfBoundsPolicy outOfBoundsPolicy=OutOfBoundsPolicy::Reject)
Sets the left page margin of the page layout to leftMargin.
bool setMargins(const QMarginsF &margins, OutOfBoundsPolicy outOfBoundsPolicy=OutOfBoundsPolicy::Reject)
Sets the page margins of the page layout to margins.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QString text
Q_GUI_EXPORT bool mightBeRichText(QAnyStringView)
Returns true if the string text is likely to be rich text; otherwise returns false.
QStringView qToStringViewIgnoringNull(const QStringLike &s) noexcept
double qreal
Definition qtypes.h:187