forked from qt-creator/qt-creator
Introduced CppTools::EditorSupport::contentsChanged().
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user