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.
This commit is contained in:
Roberto Raggi
2009-07-07 17:06:11 +02:00
parent 5139f51376
commit 43a957e6e3

View File

@@ -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()));