QWeakPointer use for tracking QObjects is deprecated.

Use QPointer.

Change-Id: Ife3cbec620ec83a9148d274d15e44016a3f5d7d0
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
bb10
Thiago Macieira 2012-09-05 13:02:56 +02:00 committed by Qt by Nokia
parent 8c4ac07258
commit 89a962c3a0
1 changed files with 2 additions and 2 deletions

View 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