aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/refactoringchanges.h
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-09-20 13:10:17 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2011-09-20 13:25:36 +0200
commit71cbd765b2f887a68495b947e202ee4ca4295fd8 (patch)
treebdb0a445f3f9390a9693cbf13d1d1daf80185d1e /src/plugins/texteditor/refactoringchanges.h
parent7c7562f2a1c7cea30a612a35a9f1356b90806952 (diff)
RefactoringChanges: Fix problems with encodings.
Task-number: QTCREATORBUG-6140 Change-Id: Iedbfca6987bffa2670df39f5f461690218f6da14 Reviewed-on: http://codereview.qt-project.org/5233 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/refactoringchanges.h')
-rw-r--r--src/plugins/texteditor/refactoringchanges.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/texteditor/refactoringchanges.h b/src/plugins/texteditor/refactoringchanges.h
index 3ba4d4a436..22c934de3e 100644
--- a/src/plugins/texteditor/refactoringchanges.h
+++ b/src/plugins/texteditor/refactoringchanges.h
@@ -34,6 +34,7 @@
#define REFACTORINGCHANGES_H
#include <utils/changeset.h>
+#include <utils/textfileformat.h>
#include <texteditor/texteditor_global.h>
#include <QtCore/QList>
@@ -83,7 +84,10 @@ public:
void apply();
protected:
+ // users may only get const access to RefactoringFiles created through
+ // this constructor, because it can't be used to apply changes
RefactoringFile(QTextDocument *document, const QString &fileName);
+
RefactoringFile(BaseTextEditorWidget *editor);
RefactoringFile(const QString &fileName, const QSharedPointer<RefactoringChangesData> &data);
@@ -94,6 +98,7 @@ protected:
protected:
QString m_fileName;
QSharedPointer<RefactoringChangesData> m_data;
+ mutable Utils::TextFileFormat m_textFileFormat;
mutable QTextDocument *m_document;
BaseTextEditorWidget *m_editor;
Utils::ChangeSet m_changes;