diff options
author | Liang Qi <liang.qi@qt.io> | 2016-10-13 18:42:06 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2016-10-13 22:19:38 +0000 |
commit | 60e3bfe958cb0130e5dd71296c000c1f8e23ec0e (patch) | |
tree | 0e74b95183397ff5011879edcfba670504d190c0 /src/plugins/platforms/cocoa/qcocoabackingstore.mm | |
parent | 8b07d2c5a5707648f74c9a6dcf56a7372efeffcc (diff) | |
parent | dfc177e3a99dd593db4b1e9445d6243ce75ebf07 (diff) |
Merge "Merge remote-tracking branch 'origin/5.8' into dev" into refs/staging/dev
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoabackingstore.mm')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoabackingstore.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoabackingstore.mm b/src/plugins/platforms/cocoa/qcocoabackingstore.mm index af5418315c..a74995319b 100644 --- a/src/plugins/platforms/cocoa/qcocoabackingstore.mm +++ b/src/plugins/platforms/cocoa/qcocoabackingstore.mm @@ -40,6 +40,7 @@ #include "qcocoabackingstore.h" #include "qcocoawindow.h" +#include "qcocoahelpers.h" QT_BEGIN_NAMESPACE @@ -51,7 +52,7 @@ QCocoaBackingStore::QCocoaBackingStore(QWindow *window) QCocoaBackingStore::~QCocoaBackingStore() { if (QCocoaWindow *cocoaWindow = static_cast<QCocoaWindow *>(window()->handle())) - [cocoaWindow->m_qtView clearBackingStore:this]; + [qnsview_cast(cocoaWindow->view()) clearBackingStore:this]; } QImage::Format QCocoaBackingStore::format() const @@ -68,7 +69,7 @@ void QCocoaBackingStore::flush(QWindow *window, const QRegion ®ion, const QPo return; if (QCocoaWindow *cocoaWindow = static_cast<QCocoaWindow *>(window->handle())) - [cocoaWindow->m_qtView flushBackingStore:this region:region offset:offset]; + [qnsview_cast(cocoaWindow->view()) flushBackingStore:this region:region offset:offset]; } QT_END_NAMESPACE |