forked from qt-creator/qt-creator
QuickFix: Migrate to a nicer API for cross-file quick fixes.
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
#include <texteditor/tabsettings.h>
|
||||
|
||||
|
||||
using namespace QmlJS;
|
||||
using namespace QmlJSEditor;
|
||||
|
||||
@@ -46,13 +45,6 @@ QmlJSRefactoringChanges::QmlJSRefactoringChanges(ModelManagerInterface *modelMan
|
||||
Q_ASSERT(modelManager);
|
||||
}
|
||||
|
||||
QStringList QmlJSRefactoringChanges::apply()
|
||||
{
|
||||
const QStringList changedFiles = TextEditor::RefactoringChanges::apply();
|
||||
m_modelManager->updateSourceFiles(changedFiles, true);
|
||||
return changedFiles;
|
||||
}
|
||||
|
||||
void QmlJSRefactoringChanges::indentSelection(const QTextCursor &selection) const
|
||||
{
|
||||
// ### shares code with QmlJSTextEditor::indent
|
||||
@@ -71,3 +63,8 @@ void QmlJSRefactoringChanges::indentSelection(const QTextCursor &selection) cons
|
||||
block = block.next();
|
||||
} while (block.isValid() && block != end);
|
||||
}
|
||||
|
||||
void QmlJSRefactoringChanges::fileChanged(const QString &fileName)
|
||||
{
|
||||
m_modelManager->updateSourceFiles(QStringList(fileName), true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user