Commit 63f3a510 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: for new code use QPointer instead of QWeakPointer



QWeakPointer is deprecated for tracking QObjects in Qt 5.

Change-Id: I3e9089b25f43b42a478aa4cd4073cbdfd0da3823
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent 2d500117
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#define DEBUGVIEW_H #define DEBUGVIEW_H
#include <qmlmodelview.h> #include <qmlmodelview.h>
#include <QPointer>
namespace QmlDesigner { namespace QmlDesigner {
...@@ -91,7 +92,7 @@ protected: ...@@ -91,7 +92,7 @@ protected:
void logInstance(const QString &title, const QString &message, bool highlight = false); void logInstance(const QString &title, const QString &message, bool highlight = false);
private: //variables private: //variables
QWeakPointer<DebugViewWidget> m_debugViewWidget; QPointer<DebugViewWidget> m_debugViewWidget;
}; };
} // namespace Internal } // namespace Internal
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment