forked from qt-creator/qt-creator
Fix that html tags instead of F1 button were for QML tool tips
Regression introduced by 6ed775f56a
Change-Id: Ibef3453339d431dcd7b890d18c27f42f198070e8
Task-number: QTCREATORBUG-15225
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -375,7 +375,7 @@ void QmlJSHoverHandler::operateTooltip(TextEditorWidget *editorWidget, const QPo
|
||||
else if (m_colorTip.isValid())
|
||||
Utils::ToolTip::show(point, m_colorTip, editorWidget);
|
||||
else
|
||||
Utils::ToolTip::show(point, toolTip(), editorWidget);
|
||||
BaseHoverHandler::operateTooltip(editorWidget, point);
|
||||
}
|
||||
|
||||
void QmlJSHoverHandler::prettyPrintTooltip(const Value *value,
|
||||
|
||||
@@ -65,13 +65,13 @@ protected:
|
||||
void setLastHelpItemIdentified(const HelpItem &help);
|
||||
const HelpItem &lastHelpItemIdentified() const;
|
||||
|
||||
virtual void decorateToolTip();
|
||||
virtual void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point);
|
||||
private:
|
||||
void clear();
|
||||
void process(TextEditorWidget *widget, int pos);
|
||||
|
||||
virtual void identifyMatch(TextEditorWidget *editorWidget, int pos) = 0;
|
||||
virtual void decorateToolTip();
|
||||
virtual void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point);
|
||||
|
||||
bool m_diagnosticTooltip;
|
||||
QString m_toolTip;
|
||||
|
||||
Reference in New Issue
Block a user