aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-01-26 14:30:14 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-01-26 19:29:14 +0100
commit1cf023c7e12d7ef9f478c23e5e6b9f3956360382 (patch)
tree477ff82989fa741724e4384d7f411319249ec1f7
parente72896968697e2a8af16a312e1560948e4c40f30 (diff)
Deprecate QtMac::isMainWindow()
Change-Id: I73cdba03f1b02c5d14f9edc2a9c2dbfdb377ad10 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--src/macextras/qmacfunctions.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/macextras/qmacfunctions.h b/src/macextras/qmacfunctions.h
index 88be13c..efd17d4 100644
--- a/src/macextras/qmacfunctions.h
+++ b/src/macextras/qmacfunctions.h
@@ -93,8 +93,11 @@ Q_MACEXTRAS_EXPORT NSImage *toNSImage(const QPixmap &pixmap);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
-Q_MACEXTRAS_EXPORT bool isMainWindow(QWindow *window);
+# if QT_DEPRECATED_SINCE(5, 15)
+QT_DEPRECATED_X("Use QWindow::winId() and view.window.isMainWindow") Q_MACEXTRAS_EXPORT bool isMainWindow(QWindow *window);
+# endif
#endif
+
#endif // Q_OS_OSX
#if defined(QT_PLATFORM_UIKIT) && !defined(Q_OS_WATCHOS)