forked from qt-creator/qt-creator
		
	CppTools: CppHighlightingSupport takes a BaseTextDocument
...instead an ITextEditor. The ITextEditor was only used to access the file path and QTextDocument via the BaseTextEditorWidget. Change-Id: Idef2b8162b992fe3718e16e2a046e2ff214846f2 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
		@@ -34,7 +34,7 @@
 | 
			
		||||
 | 
			
		||||
#include <QString>
 | 
			
		||||
 | 
			
		||||
namespace TextEditor { class ITextEditor; }
 | 
			
		||||
namespace TextEditor { class BaseTextDocument; }
 | 
			
		||||
 | 
			
		||||
namespace CppTools {
 | 
			
		||||
 | 
			
		||||
@@ -50,7 +50,8 @@ public:
 | 
			
		||||
    virtual QString displayName() const = 0;
 | 
			
		||||
 | 
			
		||||
    virtual CppCompletionAssistProvider *completionAssistProvider() = 0;
 | 
			
		||||
    virtual CppHighlightingSupport *highlightingSupport(TextEditor::ITextEditor *editor) = 0;
 | 
			
		||||
    virtual CppHighlightingSupport *highlightingSupport(
 | 
			
		||||
            TextEditor::BaseTextDocument *baseTextDocument) = 0;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
} // CppTools namespace
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user