forked from qt-creator/qt-creator
		
	Text editor: Introduce per project settings
With some refactorings to make the code look better. Reviewed-by: con
This commit is contained in:
		| @@ -120,7 +120,7 @@ bool RefactoringChanges::createFile(const QString &fileName, const QString &cont | ||||
|  | ||||
|         if (reindent) { | ||||
|             cursor.select(QTextCursor::Document); | ||||
|             indentSelection(cursor); | ||||
|             indentSelection(cursor, fileName, editor); | ||||
|         } | ||||
|  | ||||
|         cursor.endEditBlock(); | ||||
| @@ -222,7 +222,7 @@ RefactoringFile::~RefactoringFile() | ||||
|             // apply changes and reindent | ||||
|             m_changes.apply(&c); | ||||
|             foreach (const QTextCursor &selection, indentSelections) { | ||||
|                 m_refactoringChanges->indentSelection(selection); | ||||
|                 m_refactoringChanges->indentSelection(selection, m_fileName, m_editor); | ||||
|             } | ||||
|  | ||||
|             c.endEditBlock(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user