CompilationDbProjectmanager: Fix build for older compilers

Change-Id: Ie84e5d06b672a335c68528fb1acf4b7492d998cd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2019-05-23 13:40:50 +02:00
parent 3fe4e5448d
commit 39ffd00744

View File

@@ -413,13 +413,13 @@ CompilationDatabaseProject::CompilationDatabaseProject(const Utils::FileName &pr
}); });
connect(this, &CompilationDatabaseProject::rootProjectDirectoryChanged, connect(this, &CompilationDatabaseProject::rootProjectDirectoryChanged,
m_parseDelay, qOverload<>(&QTimer::start)); m_parseDelay, QOverload<>::of(&QTimer::start));
m_fileSystemWatcher.addFile(projectFile.toString(), Utils::FileSystemWatcher::WatchModifiedDate); m_fileSystemWatcher.addFile(projectFile.toString(), Utils::FileSystemWatcher::WatchModifiedDate);
m_fileSystemWatcher.addFile(projectFile.toString() + Constants::COMPILATIONDATABASEPROJECT_FILES_SUFFIX, m_fileSystemWatcher.addFile(projectFile.toString() + Constants::COMPILATIONDATABASEPROJECT_FILES_SUFFIX,
Utils::FileSystemWatcher::WatchModifiedDate); Utils::FileSystemWatcher::WatchModifiedDate);
connect(&m_fileSystemWatcher, &Utils::FileSystemWatcher::fileChanged, connect(&m_fileSystemWatcher, &Utils::FileSystemWatcher::fileChanged,
m_parseDelay, qOverload<>(&QTimer::start)); m_parseDelay, QOverload<>::of(&QTimer::start));
connect(m_parseDelay, &QTimer::timeout, this, &CompilationDatabaseProject::reparseProject); connect(m_parseDelay, &QTimer::timeout, this, &CompilationDatabaseProject::reparseProject);
m_parseDelay->setSingleShot(true); m_parseDelay->setSingleShot(true);
m_parseDelay->setInterval(1000); m_parseDelay->setInterval(1000);