QuickFix: Don't separate createChanges from perform.

This will allow a more efficient and direct implementation.
This commit is contained in:
Christian Kamm
2010-08-12 11:41:15 +02:00
parent 235f4d1d26
commit ca5076e5ae
6 changed files with 39 additions and 31 deletions

View File

@@ -92,7 +92,7 @@ public:
"Move Component into '%1.qml'").arg(m_componentName));
}
virtual void createChanges()
virtual void perform()
{
const QString newFileName = QFileInfo(fileName()).path()
+ QDir::separator() + m_componentName + QLatin1String(".qml");
@@ -117,6 +117,7 @@ public:
refactoringChanges()->createFile(newFileName, txt);
refactoringChanges()->reindent(newFileName, range(0, txt.length() - 1));
refactoringChanges()->apply();
}
};