summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-10-14 08:09:31 -0700
committerJake Petroules <jake.petroules@qt.io>2016-10-14 15:18:38 +0000
commitb2586ea54a8ae13169908e3dc8a85d21e0eb2f14 (patch)
treed4ef3487e83d578e8ddeef116d2bc2d18cec0900 /src
parentf1a168c492e445211e54d6108585e70c8ea55fbe (diff)
Use correct QT_*_PLATFORM_SDK_EQUAL_OR_ABOVE macros
QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE and QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE are deprecated in favor of QT_MACOS_IOS_PLATFORM_SDK_EQUAL_OR_ABOVE and QT_MACOS_PLATFORM_SDK_EQUAL_OR_ABOVE, respectively. Change-Id: Ie09d2b8eadb761bfb6477bfd60c11aad1d0da800 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/webview/qwebview_darwin.mm4
-rw-r--r--src/webview/qwebview_osx.mm2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/webview/qwebview_darwin.mm b/src/webview/qwebview_darwin.mm
index 1ff0902..24587aa 100644
--- a/src/webview/qwebview_darwin.mm
+++ b/src/webview/qwebview_darwin.mm
@@ -84,7 +84,7 @@ inline QSysInfo::MacVersion qt_OS_limit(QSysInfo::MacVersion osxVersion,
QWebViewPrivate *QWebViewPrivate::create(QWebView *q)
{
-#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_10, __IPHONE_8_0)
+#if QT_MACOS_IOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_10, __IPHONE_8_0)
if (QSysInfo::MacintoshVersion >= qt_OS_limit(QSysInfo::MV_10_10, QSysInfo::MV_IOS_8_0)
&& QtWebViewPrivate::useNativeWebView())
return new QDarwinWebViewPrivate(q);
@@ -152,7 +152,7 @@ static inline CGRect toCGRect(const QRectF &rect)
// -------------------------------------------------------------------------
-#if QT_MAC_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_10, __IPHONE_8_0)
+#if QT_MACOS_IOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_10, __IPHONE_8_0)
class QWebViewInterface;
diff --git a/src/webview/qwebview_osx.mm b/src/webview/qwebview_osx.mm
index 711f62f..e64ad06 100644
--- a/src/webview/qwebview_osx.mm
+++ b/src/webview/qwebview_osx.mm
@@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE
class QOsxWebViewPrivate;
-#if QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_11)
+#if QT_MACOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_11)
#define QtFrameLoadDelegateProtocol <WebFrameLoadDelegate>
#else
// WebFrameLoadDelegate is an informal protocol in <= 10.10 SDK.