Commit 43a957e6 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

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.
parent 5139f513
...@@ -317,13 +317,14 @@ CppEditorSupport::CppEditorSupport(CppModelManager *modelManager) ...@@ -317,13 +317,14 @@ CppEditorSupport::CppEditorSupport(CppModelManager *modelManager)
_updateDocumentTimer->setSingleShot(true); _updateDocumentTimer->setSingleShot(true);
_updateDocumentTimer->setInterval(_updateDocumentInterval); _updateDocumentTimer->setInterval(_updateDocumentInterval);
connect(_updateDocumentTimer, SIGNAL(timeout()), this, SLOT(updateDocumentNow())); connect(_updateDocumentTimer, SIGNAL(timeout()), this, SLOT(updateDocumentNow()));
_quickFixMark = new QuickFixMark(this); _quickFixMark = new QuickFixMark(this);
_quickFixTimer = new QTimer(this); _quickFixTimer = new QTimer(this);
_quickFixTimer->setSingleShot(true); _quickFixTimer->setSingleShot(true);
_quickFixTimer->setInterval(DEFAULT_QUICKFIX_INTERVAL); _quickFixTimer->setInterval(DEFAULT_QUICKFIX_INTERVAL);
#ifdef QTCREATOR_WITH_QUICKFIX
connect(_quickFixTimer, SIGNAL(timeout()), this, SLOT(checkDocumentNow())); connect(_quickFixTimer, SIGNAL(timeout()), this, SLOT(checkDocumentNow()));
#endif
} }
CppEditorSupport::~CppEditorSupport() CppEditorSupport::~CppEditorSupport()
...@@ -340,8 +341,11 @@ void CppEditorSupport::setTextEditor(TextEditor::ITextEditor *textEditor) ...@@ -340,8 +341,11 @@ void CppEditorSupport::setTextEditor(TextEditor::ITextEditor *textEditor)
return; return;
connect(_textEditor, SIGNAL(contentsChanged()), this, SIGNAL(contentsChanged())); connect(_textEditor, SIGNAL(contentsChanged()), this, SIGNAL(contentsChanged()));
#ifdef QTCREATOR_WITH_QUICKFIX
connect(qobject_cast<TextEditor::BaseTextEditor *>(_textEditor->widget()), SIGNAL(cursorPositionChanged()), connect(qobject_cast<TextEditor::BaseTextEditor *>(_textEditor->widget()), SIGNAL(cursorPositionChanged()),
this, SLOT(checkDocument())); this, SLOT(checkDocument()));
#endif
connect(this, SIGNAL(contentsChanged()), this, SLOT(updateDocument())); connect(this, SIGNAL(contentsChanged()), this, SLOT(updateDocument()));
......
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