TextEditor: Rename class RefactoringChanges

... and remove outdated comment.

Change-Id: I6dcd0a38608192ccdd6734affd33e170d39e8299
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2023-11-17 12:44:49 +01:00
parent e7073421cc
commit 78b9edd251
12 changed files with 16 additions and 23 deletions

View File

@@ -22,9 +22,9 @@ QT_END_NAMESPACE
namespace TextEditor {
class TextDocument;
class TextEditorWidget;
class RefactoringChanges;
class RefactoringFile;
using RefactoringFilePtr = QSharedPointer<RefactoringFile>;
class RefactoringFileFactory;
using RefactoringSelections = QVector<QPair<QTextCursor, QTextCursor>>;
// ### listen to the m_editor::destroyed signal?
@@ -103,17 +103,13 @@ protected:
bool m_appliedOnce = false;
bool m_formattingEnabled = false;
friend class RefactoringChanges; // access to constructor
friend class RefactoringFileFactory; // access to constructor
};
/*!
This class batches changes to multiple file, which are applied as a single big
change.
*/
class TEXTEDITOR_EXPORT RefactoringChanges
class TEXTEDITOR_EXPORT RefactoringFileFactory
{
public:
virtual ~RefactoringChanges();
virtual ~RefactoringFileFactory();
// TODO: Make pure virtual and introduce dedicated subclass for generic refactoring,
// so no one instantiates this one by mistake.