diff options
Diffstat (limited to 'src/widgets/widgets/qmacnativewidget_mac.h')
-rw-r--r-- | src/widgets/widgets/qmacnativewidget_mac.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widgets/widgets/qmacnativewidget_mac.h b/src/widgets/widgets/qmacnativewidget_mac.h index 6fd90516ac..751f520934 100644 --- a/src/widgets/widgets/qmacnativewidget_mac.h +++ b/src/widgets/widgets/qmacnativewidget_mac.h @@ -47,7 +47,9 @@ Q_FORWARD_DECLARE_OBJC_CLASS(NSView); QT_BEGIN_NAMESPACE -class Q_WIDGETS_EXPORT QMacNativeWidget : public QWidget +#if QT_DEPRECATED_SINCE(5, 15) +class QT_DEPRECATED_X("Use QWidget::winId instead") +Q_WIDGETS_EXPORT QMacNativeWidget : public QWidget { Q_OBJECT public: @@ -60,6 +62,7 @@ public: protected: bool event(QEvent *ev) override; }; +#endif QT_END_NAMESPACE |