forked from qt-creator/qt-creator
		
	Fix more krazy warnings.
This commit is contained in:
		@@ -390,12 +390,12 @@ void Highlighter::applyFormat(int offset,
 | 
			
		||||
        if (cit != m_creatorFormats.constEnd()) {
 | 
			
		||||
            QTextCharFormat format = cit.value();
 | 
			
		||||
            if (itemData->isCustomized()) {
 | 
			
		||||
                // Please notice that the following are applied every time for item datas which have
 | 
			
		||||
                // Please notice that the following are applied every time for item data which have
 | 
			
		||||
                // customizations. The configureFormats method could be used to provide a "one time"
 | 
			
		||||
                // configuration, but it would probably require to traverse all item datas from all
 | 
			
		||||
                // configuration, but it would probably require to traverse all item data from all
 | 
			
		||||
                // definitions available/loaded (either to set the values or for some "notifying"
 | 
			
		||||
                // strategy). This is because the highlighter does not really know on which
 | 
			
		||||
                // definition(s) it is working. Since not many item datas specify customizations I
 | 
			
		||||
                // definition(s) it is working. Since not many item data specify customizations I
 | 
			
		||||
                // think this approach would fit better. If there are other ideas...
 | 
			
		||||
                if (itemData->color().isValid())
 | 
			
		||||
                    format.setForeground(itemData->color());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user