forked from qt-creator/qt-creator
		
	Tooltips: Fix brief description for QML elements
The brief description was not being shown. The help id for a QML element is something like QML.Item while the extraction mark is simply Item. Reviewed-by: Thomas Hartmann Reviewed-by: con
This commit is contained in:
		@@ -124,7 +124,8 @@ void HoverHandler::identifyMatch(TextEditor::ITextEditor *editor, int pos)
 | 
			
		||||
            handleOrdinaryMatch(lookupContext, semanticInfo.nodeUnderCursor(pos));
 | 
			
		||||
            const QString &helpId = qmlHelpId(toolTip());
 | 
			
		||||
            if (!helpId.isEmpty())
 | 
			
		||||
                setLastHelpItemIdentified(TextEditor::HelpItem(helpId, TextEditor::HelpItem::QML));
 | 
			
		||||
                setLastHelpItemIdentified(TextEditor::HelpItem(helpId, toolTip(),
 | 
			
		||||
                                                               TextEditor::HelpItem::QML));
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user