Commit 2974c36d authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fix forward declarations for metatypes in Qt 5.



Change-Id: Ib1af8c0bb2fbf87b2ba20a71e8b456730e7a940d
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 9e20de5a
......@@ -35,18 +35,17 @@
#include <QtCore/QMetaType>
#if QT_VERSION >= 0x050000
// Qt 5 requires the types to be defined.
# include "iprojectmanager.h"
# include "session.h"
# include "project.h"
#else
namespace ProjectExplorer {
class IProjectManager;
class SessionManager;
class Project;
}
#endif // QT_VERSION < 0x050000
#if QT_VERSION >= 0x050000
// Required for Q_DECLARE_METATYPE of forward-declared types in Qt 5.
Q_DECLARE_OPAQUE_POINTER(ProjectExplorer::IProjectManager*)
Q_DECLARE_OPAQUE_POINTER(ProjectExplorer::SessionManager*)
#endif // QT_VERSION >= 0x050000
Q_DECLARE_METATYPE(QList<ProjectExplorer::Project*>)
Q_DECLARE_METATYPE(ProjectExplorer::SessionManager*)
......
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