Do not use QWeakPointer to track QObjects.

This use case is deprecated in Qt 5. Use QPointer instead.

Change-Id: Id6c32542032656d7cb31cf838d93a680ab9e9327
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Christian Kandeler
2012-09-24 13:48:18 +02:00
parent f21a408b51
commit aef4280bc1
23 changed files with 64 additions and 54 deletions

View File

@@ -107,7 +107,7 @@ public:
ProjectInfo()
{ }
ProjectInfo(QWeakPointer<ProjectExplorer::Project> project)
ProjectInfo(QPointer<ProjectExplorer::Project> project)
: m_project(project)
{ }
@@ -120,7 +120,7 @@ public:
bool isNull() const
{ return m_project.isNull(); }
QWeakPointer<ProjectExplorer::Project> project() const
QPointer<ProjectExplorer::Project> project() const
{ return m_project; }
const QList<ProjectPart::Ptr> projectParts() const
@@ -142,7 +142,7 @@ public:
{ return m_defines; }
private: // attributes
QWeakPointer<ProjectExplorer::Project> m_project;
QPointer<ProjectExplorer::Project> m_project;
QList<ProjectPart::Ptr> m_projectParts;
// the attributes below are calculated from the project parts.
QStringList m_includePaths;