forked from qt-creator/qt-creator
		
	Profile editor: Add proper format to white spaces.
The generic highlighter already provided a method for this. This method was then lifted to the base syntax highlighter and it is now used by the profile highlighter. Reviewed-by: Roberto Raggi Task-number: QTCREATORBUG-2448
This commit is contained in:
		@@ -140,7 +140,8 @@ void ProFileEditor::setFontSettings(const TextEditor::FontSettings &fs)
 | 
			
		||||
    if (categories.isEmpty()) {
 | 
			
		||||
        categories << QLatin1String(TextEditor::Constants::C_TYPE)
 | 
			
		||||
                   << QLatin1String(TextEditor::Constants::C_KEYWORD)
 | 
			
		||||
                   << QLatin1String(TextEditor::Constants::C_COMMENT);
 | 
			
		||||
                   << QLatin1String(TextEditor::Constants::C_COMMENT)
 | 
			
		||||
                   << QLatin1String(TextEditor::Constants::C_VISUAL_WHITESPACE);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const QVector<QTextCharFormat> formats = fs.toTextCharFormats(categories);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user