From 43a957e6e32fe80fe531db7922de58bb48b4029c Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Tue, 7 Jul 2009 17:06:11 +0200
Subject: [PATCH] Disabled the quick fix engine.

We don't really have any useful quickfix implemented so there's no reason
to waste time visiting the AST.
---
 src/plugins/cpptools/cpptoolseditorsupport.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp
index 5ac9887401d..c575b2e0500 100644
--- a/src/plugins/cpptools/cpptoolseditorsupport.cpp
+++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp
@@ -317,13 +317,14 @@ CppEditorSupport::CppEditorSupport(CppModelManager *modelManager)
     _updateDocumentTimer->setSingleShot(true);
     _updateDocumentTimer->setInterval(_updateDocumentInterval);
     connect(_updateDocumentTimer, SIGNAL(timeout()), this, SLOT(updateDocumentNow()));
-
     _quickFixMark = new QuickFixMark(this);
 
     _quickFixTimer = new QTimer(this);
     _quickFixTimer->setSingleShot(true);
     _quickFixTimer->setInterval(DEFAULT_QUICKFIX_INTERVAL);
+#ifdef QTCREATOR_WITH_QUICKFIX
     connect(_quickFixTimer, SIGNAL(timeout()), this, SLOT(checkDocumentNow()));
+#endif
 }
 
 CppEditorSupport::~CppEditorSupport()
@@ -340,8 +341,11 @@ void CppEditorSupport::setTextEditor(TextEditor::ITextEditor *textEditor)
         return;
 
     connect(_textEditor, SIGNAL(contentsChanged()), this, SIGNAL(contentsChanged()));
+
+#ifdef QTCREATOR_WITH_QUICKFIX
     connect(qobject_cast<TextEditor::BaseTextEditor *>(_textEditor->widget()), SIGNAL(cursorPositionChanged()),
             this, SLOT(checkDocument()));
+#endif
 
     connect(this, SIGNAL(contentsChanged()), this, SLOT(updateDocument()));
 
-- 
GitLab