forked from qt-creator/qt-creator
QuickFix: Migrate to a nicer API for cross-file quick fixes.
This commit is contained in:
@@ -63,13 +63,6 @@ const LookupContext &CppRefactoringChanges::context() const
|
||||
return m_context;
|
||||
}
|
||||
|
||||
QStringList CppRefactoringChanges::apply()
|
||||
{
|
||||
const QStringList changedFiles = TextEditor::RefactoringChanges::apply();
|
||||
m_modelManager->updateSourceFiles(changedFiles);
|
||||
return changedFiles;
|
||||
}
|
||||
|
||||
Document::Ptr CppRefactoringChanges::document(const QString &fileName) const
|
||||
{
|
||||
QString source;
|
||||
@@ -120,3 +113,8 @@ void CppRefactoringChanges::indentSelection(const QTextCursor &selection) const
|
||||
block = block.next();
|
||||
} while (block.isValid() && block != end);
|
||||
}
|
||||
|
||||
void CppRefactoringChanges::fileChanged(const QString &fileName)
|
||||
{
|
||||
m_modelManager->updateSourceFiles(QStringList(fileName));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user