QmlJsEditor: Add color preview tooltip

Fixes: QTCREATORBUG-28446
Change-Id: I650c18c0ecf2b6c8572ec3876c38eb313c434392
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Andre Hartmann
2022-11-14 10:51:06 +01:00
committed by André Hartmann
parent 90ee349980
commit 2bcdc1ee7e

View File

@@ -46,6 +46,7 @@
#include <texteditor/refactoroverlay.h>
#include <texteditor/codeassist/genericproposal.h>
#include <texteditor/codeassist/genericproposalmodel.h>
#include <texteditor/colorpreviewhoverhandler.h>
#include <texteditor/texteditoractionhandler.h>
#include <texteditor/textmark.h>
@@ -1078,6 +1079,7 @@ QmlJSEditorFactory::QmlJSEditorFactory(Utils::Id _id)
setCodeFoldingSupported(true);
addHoverHandler(new QmlJSHoverHandler);
addHoverHandler(new ColorPreviewHoverHandler);
setCompletionAssistProvider(new QmlJSCompletionAssistProvider);
setEditorActionHandlers(TextEditorActionHandler::Format