forked from qt-creator/qt-creator
TextEditor: move setIfdefedOutBlocks to TextDocument
The location of the blocks to marked ifdefed out are not tied to a specific editor instance, but just depend on the document content. Change-Id: I837730dc00e1d6060dd46bbb2cfccbfa5f72e6ce Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -49,6 +49,7 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace TextEditor {
|
||||
|
||||
class BlockRange;
|
||||
class CompletionAssistProvider;
|
||||
class ExtraEncodingSettings;
|
||||
class FontSettings;
|
||||
@@ -103,6 +104,9 @@ public:
|
||||
void autoFormat(const QTextCursor &cursor);
|
||||
bool applyChangeSet(const Utils::ChangeSet &changeSet);
|
||||
|
||||
// the blocks list must be sorted
|
||||
void setIfdefedOutBlocks(const QList<BlockRange> &blocks);
|
||||
|
||||
TextMarks marks() const;
|
||||
bool addMark(TextMark *mark);
|
||||
TextMarks marksAt(int line) const;
|
||||
|
||||
Reference in New Issue
Block a user