Use QPointer.
Change-Id: Ife3cbec620ec83a9148d274d15e44016a3f5d7d0
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
#ifndef QCOCOAGLCONTEXT_H
#define QCOCOAGLCONTEXT_H
-#include <QtCore/QWeakPointer>
+#include <QtCore/QPointer>
#include <qpa/qplatformopenglcontext.h>
#include <QtGui/QOpenGLContext>
#include <QtGui/QWindow>
NSOpenGLContext *m_context;
NSOpenGLContext *m_shareContext;
QSurfaceFormat m_format;
- QWeakPointer<QWindow> m_currentWindow;
+ QPointer<QWindow> m_currentWindow;
};
QT_END_NAMESPACE