Commit 9f9bdd72 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.rewriteAction: fixes rewriter for import alias

parent 2e7d0dc5
......@@ -229,7 +229,7 @@ bool ChangeTypeRewriteAction::execute(QmlDesigner::QmlRefactoring &refactoring,
const int nodeLocation = positionStore.nodeOffset(m_node);
bool result = false;
QString newNodeType = m_node.type();
QString newNodeType = m_node.convertTypeToImportAlias();
const int slashIdx = newNodeType.lastIndexOf('.');
if (slashIdx != -1)
newNodeType = newNodeType.mid(slashIdx + 1);
......
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