Commit 5530e2de authored by hjk's avatar hjk
Browse files

GenericProject: Use some Qt 5 connect



Change-Id: I990aa7a6f59fa323d2d8e3c90bf89b18f6fc2058
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent b1176b97
......@@ -38,10 +38,10 @@ using namespace GenericProjectManager::Internal::Tests;
CppModelManagerHelper::CppModelManagerHelper(QObject *parent)
: QObject(parent)
, m_spy(cppModelManager(), SIGNAL(sourceFilesRefreshed(const QSet<QString> &)))
, m_spy(cppModelManager(), &CppModelManager::sourceFilesRefreshed)
{
connect(cppModelManager(), SIGNAL(sourceFilesRefreshed(const QSet<QString> &)),
this, SLOT(onSourceFilesRefreshed(const QSet<QString> &)));
connect(cppModelManager(), &CppModelManager::sourceFilesRefreshed,
this, &CppModelManagerHelper::onSourceFilesRefreshed);
}
CppModelManager *CppModelManagerHelper::cppModelManager()
......
......@@ -51,10 +51,9 @@ public:
void waitForSourceFilesRefreshed(const QString &file = QString(), int timeOut = defaultTimeOut);
void waitForSourceFilesRefreshed(const QStringList &files, int timeOut = defaultTimeOut);
private slots:
private:
void onSourceFilesRefreshed(const QSet<QString> &files);
private:
QSet<QString> m_refreshedSourceFiles;
QSignalSpy m_spy;
};
......
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