Commit 79d1d5b9 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

CppEditor: Reset process document timer back to 150ms



...since the clangbackend has its own timer now.

Change-Id: Icef3ea820da751617a3fe4b6f090ac244d0ddef8
Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent a08336fc
......@@ -63,8 +63,7 @@ CppTools::CppModelManager *mm()
namespace CppEditor {
namespace Internal {
enum { processDocumentIntervalInMs = 150,
clangProcessDocumentIntervalInMs = 500 };
enum { processDocumentIntervalInMs = 150 };
class CppEditorDocumentHandleImpl : public CppTools::CppEditorDocumentHandle
{
......@@ -292,10 +291,7 @@ void CppEditorDocument::releaseResources()
void CppEditorDocument::initializeTimer()
{
m_processorTimer.setSingleShot(true);
if (mm()->isClangCodeModelActive())
m_processorTimer.setInterval(clangProcessDocumentIntervalInMs);
else
m_processorTimer.setInterval(processDocumentIntervalInMs);
m_processorTimer.setInterval(processDocumentIntervalInMs);
connect(&m_processorTimer,
&QTimer::timeout,
......
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