summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolseditorsupport.cpp
diff options
context:
space:
mode:
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()));