summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolseditorsupport.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-07-07 17:06:11 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2009-07-07 17:06:11 +0200
commit43a957e6e32fe80fe531db7922de58bb48b4029c (patch)
tree61e30e15d71d6cb74868f2c8cd413965e319a5ac /src/plugins/cpptools/cpptoolseditorsupport.cpp
parent5139f51376f5a0855d12faf2b39d13b1b6660cc5 (diff)
downloadqt-creator-43a957e6e32fe80fe531db7922de58bb48b4029c.tar.gz
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.
Diffstat (limited to 'src/plugins/cpptools/cpptoolseditorsupport.cpp')
-rw-r--r--src/plugins/cpptools/cpptoolseditorsupport.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp
index 5ac9887401..c575b2e050 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()));