forked from qt-creator/qt-creator
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:
committed by
André Hartmann
parent
90ee349980
commit
2bcdc1ee7e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user