| 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 | { |
| 37 | return Qt::mightBeRichText(qToStringViewIgnoringNull(s: text)); |
| 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 | |
| 46 | bool QPageLayout::setMargins(const QMarginsF &margins) |
| 47 | { |
| 48 | return setMargins(margins, outOfBoundsPolicy: OutOfBoundsPolicy::Reject); |
| 49 | } |
| 50 | |
| 51 | bool QPageLayout::setLeftMargin(qreal leftMargin) |
| 52 | { |
| 53 | return setLeftMargin(leftMargin, outOfBoundsPolicy: OutOfBoundsPolicy::Reject); |
| 54 | } |
| 55 | |
| 56 | bool QPageLayout::setRightMargin(qreal rightMargin) |
| 57 | { |
| 58 | return setRightMargin(rightMargin, outOfBoundsPolicy: OutOfBoundsPolicy::Reject); |
| 59 | } |
| 60 | |
| 61 | bool QPageLayout::setTopMargin(qreal topMargin) |
| 62 | { |
| 63 | return setTopMargin(topMargin, outOfBoundsPolicy: OutOfBoundsPolicy::Reject); |
| 64 | } |
| 65 | |
| 66 | bool QPageLayout::setBottomMargin(qreal bottomMargin) |
| 67 | { |
| 68 | return setBottomMargin(bottomMargin, outOfBoundsPolicy: OutOfBoundsPolicy::Reject); |
| 69 | } |
| 70 | |
| 71 | #ifndef QT_NO_CONTEXTMENU |
| 72 | #include <qpa/qwindowsysteminterface.h> |
| 73 | void QWindowSystemInterface::handleContextMenuEvent(QWindow *window, bool mouseTriggered, |
| 74 | const QPoint &pos, const QPoint &globalPos, |
| 75 | Qt::KeyboardModifiers modifiers) |
| 76 | { |
| 77 | handleContextMenuEvent<QWindowSystemInterface::DefaultDelivery>( |
| 78 | window, mouseTriggered, pos, globalPos, modifiers); |
| 79 | } |
| 80 | #endif // QT_NO_CONTEXTMENU |
| 81 | |
| 82 | // #include "qotherheader.h" |
| 83 | // // implement removed functions from qotherheader.h |
| 84 | // order sections alphabetically |
| 85 | |
| 86 | #endif // QT_GUI_REMOVED_SINCE(6, 8) |
| 87 | |