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