QWeakPointer use for tracking QObjects is deprecated.
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 5 Sep 2012 11:02:56 +0000 (13:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 7 Sep 2012 13:42:16 +0000 (15:42 +0200)
Use QPointer.

Change-Id: Ife3cbec620ec83a9148d274d15e44016a3f5d7d0
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/plugins/platforms/cocoa/qcocoaglcontext.h

index 6c0fcd1..0caf6df 100644 (file)
@@ -42,7 +42,7 @@
 #ifndef QCOCOAGLCONTEXT_H
 #define QCOCOAGLCONTEXT_H
 
-#include <QtCore/QWeakPointer>
+#include <QtCore/QPointer>
 #include <qpa/qplatformopenglcontext.h>
 #include <QtGui/QOpenGLContext>
 #include <QtGui/QWindow>
@@ -80,7 +80,7 @@ private:
     NSOpenGLContext *m_context;
     NSOpenGLContext *m_shareContext;
     QSurfaceFormat m_format;
-    QWeakPointer<QWindow> m_currentWindow;
+    QPointer<QWindow> m_currentWindow;
 };
 
 QT_END_NAMESPACE