Commit a8cfda0d authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Introduced CppTools::EditorSupport::contentsChanged().

parent c9b2bae4
...@@ -61,7 +61,8 @@ void CppEditorSupport::setTextEditor(TextEditor::ITextEditor *textEditor) ...@@ -61,7 +61,8 @@ void CppEditorSupport::setTextEditor(TextEditor::ITextEditor *textEditor)
if (! _textEditor) if (! _textEditor)
return; return;
connect(_textEditor, SIGNAL(contentsChanged()), this, SLOT(updateDocument())); connect(_textEditor, SIGNAL(contentsChanged()), this, SIGNAL(contentsChanged()));
connect(this, SIGNAL(contentsChanged()), this, SLOT(updateDocument()));
updateDocument(); updateDocument();
} }
...@@ -106,3 +107,5 @@ void CppEditorSupport::updateDocumentNow() ...@@ -106,3 +107,5 @@ void CppEditorSupport::updateDocumentNow()
} }
} }
...@@ -63,6 +63,9 @@ public: ...@@ -63,6 +63,9 @@ public:
QString contents(); QString contents();
Q_SIGNALS:
void contentsChanged();
private Q_SLOTS: private Q_SLOTS:
void updateDocument(); void updateDocument();
void updateDocumentNow(); void updateDocumentNow();
......
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