Commit 9276e6a0 authored by Christian Stenger's avatar Christian Stenger Committed by Erik Verbruggen

CppTools: Fix warning of connects and execution of plugin unit test

Change-Id: I3057e3b198d566f57e991103c18ce077babcc4f0
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent aba1d0a1
...@@ -60,6 +60,8 @@ ...@@ -60,6 +60,8 @@
#include <sstream> #include <sstream>
#endif #endif
Q_DECLARE_METATYPE(QSet<QString>)
static const bool DumpProjectInfo = qgetenv("QTC_DUMP_PROJECT_INFO") == "1"; static const bool DumpProjectInfo = qgetenv("QTC_DUMP_PROJECT_INFO") == "1";
using namespace CppTools; using namespace CppTools;
...@@ -219,6 +221,7 @@ CppModelManager::CppModelManager(QObject *parent) ...@@ -219,6 +221,7 @@ CppModelManager::CppModelManager(QObject *parent)
, m_indexingSupporter(0) , m_indexingSupporter(0)
, m_enableGC(true) , m_enableGC(true)
{ {
qRegisterMetaType<QSet<QString> >();
connect(this, SIGNAL(documentUpdated(CPlusPlus::Document::Ptr)), connect(this, SIGNAL(documentUpdated(CPlusPlus::Document::Ptr)),
this, SIGNAL(globalSnapshotChanged())); this, SIGNAL(globalSnapshotChanged()));
connect(this, SIGNAL(aboutToRemoveFiles(QStringList)), connect(this, SIGNAL(aboutToRemoveFiles(QStringList)),
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include <cassert> #include <cassert>
Q_DECLARE_METATYPE(QSet<QString>)
using namespace CppTools::Internal; using namespace CppTools::Internal;
TestProject::TestProject(const QString &name, QObject *parent) TestProject::TestProject(const QString &name, QObject *parent)
...@@ -42,6 +44,7 @@ TestProject::TestProject(const QString &name, QObject *parent) ...@@ -42,6 +44,7 @@ TestProject::TestProject(const QString &name, QObject *parent)
{ {
setParent(parent); setParent(parent);
setId(Core::Id::fromString(name)); setId(Core::Id::fromString(name));
qRegisterMetaType<QSet<QString> >();
} }
TestProject::~TestProject() TestProject::~TestProject()
......
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