summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-03-02 15:48:06 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-03-02 16:31:59 +0100
commita8cfda0ddb56bb87f79809eb7b523b1fcfe574e3 (patch)
treebdbc62224955018429cba91d4c410a822e51e5e9 /src
parentc9b2bae48634a84171e10b2dacd00f0cd3982cce (diff)
downloadqt-creator-a8cfda0ddb56bb87f79809eb7b523b1fcfe574e3.tar.gz
Introduced CppTools::EditorSupport::contentsChanged().
Diffstat (limited to 'src')
-rw-r--r--src/plugins/cpptools/cpptoolseditorsupport.cpp5
-rw-r--r--src/plugins/cpptools/cpptoolseditorsupport.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp
index 6527983b6e..5eba9158e7 100644
--- a/src/plugins/cpptools/cpptoolseditorsupport.cpp
+++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp
@@ -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()
}
}
+
+
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.h b/src/plugins/cpptools/cpptoolseditorsupport.h
index e95a1962bd..ef91da43e0 100644
--- a/src/plugins/cpptools/cpptoolseditorsupport.h
+++ b/src/plugins/cpptools/cpptoolseditorsupport.h
@@ -63,6 +63,9 @@ public:
QString contents();
+Q_SIGNALS:
+ void contentsChanged();
+
private Q_SLOTS:
void updateDocument();
void updateDocumentNow();