forked from qt-creator/qt-creator
qmljshoverhandler: do not show tooltips when qmlls is enabled
Check if qmlls is enabled before showing tooltips from the QtC's code model. This way, other hoverhandlers, like the one used for language servers, have the possibility to show their tooltip. Task-number: QTCREATORBUG-29826 Change-Id: I5d879c7d4c04a27bc668e8900f54984788b02727 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "qmljseditordocument.h"
|
||||
#include "qmljseditortr.h"
|
||||
#include "qmljshoverhandler.h"
|
||||
#include "qmljseditingsettingspage.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
@@ -371,6 +372,12 @@ void QmlJSHoverHandler::reset()
|
||||
|
||||
void QmlJSHoverHandler::operateTooltip(TextEditorWidget *editorWidget, const QPoint &point)
|
||||
{
|
||||
// disable hoverhandling in case qmlls is enabled
|
||||
if (QmlJsEditingSettings::get().qmllsSettings().useQmlls) {
|
||||
BaseHoverHandler::operateTooltip(editorWidget, point);
|
||||
return;
|
||||
}
|
||||
|
||||
if (toolTip().isEmpty())
|
||||
Utils::ToolTip::hide();
|
||||
else if (m_colorTip.isValid())
|
||||
|
Reference in New Issue
Block a user