summaryrefslogtreecommitdiff
path: root/src/plugins/resourceeditor
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@nokia.com>2012-03-12 16:56:25 +0100
committerEike Ziller <eike.ziller@nokia.com>2012-04-05 16:47:15 +0200
commit10438d2e9d74fe5ad38f2ccbaf1fbbe8316b4061 (patch)
treeea026b58c71f3fc87704b1d973493ddd343f058b /src/plugins/resourceeditor
parentf1c299a85e08c5ce16fc8dad371a11115687edf0 (diff)
downloadqt-creator-10438d2e9d74fe5ad38f2ccbaf1fbbe8316b4061.tar.gz
BaseTextMark: Support renaming files
Change-Id: I8d712f76fca5d8f5ecad70f1485228e21c00648d Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r--src/plugins/resourceeditor/resourceeditorw.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorw.cpp b/src/plugins/resourceeditor/resourceeditorw.cpp
index 150a4a3ce8..33ded8d76b 100644
--- a/src/plugins/resourceeditor/resourceeditorw.cpp
+++ b/src/plugins/resourceeditor/resourceeditorw.cpp
@@ -194,7 +194,9 @@ bool ResourceEditorDocument::save(QString *errorString, const QString &name, boo
void ResourceEditorDocument::rename(const QString &newName)
{
+ const QString oldName = m_parent->m_resourceEditor->fileName();
m_parent->m_resourceEditor->setFileName(newName);
+ emit fileNameChanged(oldName, newName); // TODO Are there other cases where the ressource file name changes?
emit changed();
}