summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/designercore/include/componenttextmodifier.h
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2010-09-30 14:25:20 +0200
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2010-09-30 17:43:19 +0200
commit4c185a9ac4477686f01af42534c7d6f28f8598df (patch)
tree4995d5a86fffde737c6f4845387126aeab32288d /src/plugins/qmldesigner/designercore/include/componenttextmodifier.h
parent2d5049645c502b20c2a8c4c2ce800319d067cbd2 (diff)
downloadqt-creator-4c185a9ac4477686f01af42534c7d6f28f8598df.tar.gz
QmlDesigner.model: rename id is now a proper refactoring operation
I an id is now changed in the navaigator or property editor, we now use the qmljseditor to properly refactor. Also I changed dynamic_cast to qobject_cast Reviewed-by: Erik Verbruggen
Diffstat (limited to 'src/plugins/qmldesigner/designercore/include/componenttextmodifier.h')
-rw-r--r--src/plugins/qmldesigner/designercore/include/componenttextmodifier.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/designercore/include/componenttextmodifier.h b/src/plugins/qmldesigner/designercore/include/componenttextmodifier.h
index 4188007a6d..f60219acfd 100644
--- a/src/plugins/qmldesigner/designercore/include/componenttextmodifier.h
+++ b/src/plugins/qmldesigner/designercore/include/componenttextmodifier.h
@@ -61,6 +61,8 @@ public:
virtual QmlJS::Snapshot getSnapshot() const;
virtual QStringList importPaths() const;
+ virtual bool renameId(const QString & /* oldId */, const QString & /* newId */) { return false; }
+
public slots:
void contentsChange(int position, int charsRemoved, int charsAdded);