QmlJsEditor: Use the "Design" file icon overlay for .ui.qml files

Change-Id: I4f324c7a839b6f58cdee028dd9c147384a56a3dd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Alessandro Portale
2021-12-11 20:49:20 +01:00
parent 32d3fa755e
commit 613a9a13c8

View File

@@ -211,6 +211,8 @@ QmlJSEditorPluginPrivate::QmlJSEditorPluginPrivate()
contextMenu->addAction(cmd); contextMenu->addAction(cmd);
FileIconProvider::registerIconOverlayForSuffix(ProjectExplorer::Constants::FILEOVERLAY_QML, "qml"); FileIconProvider::registerIconOverlayForSuffix(ProjectExplorer::Constants::FILEOVERLAY_QML, "qml");
FileIconProvider::registerIconOverlayForMimeType(ProjectExplorer::Constants::FILEOVERLAY_UI,
"application/x-qt.ui+qml");
connect(EditorManager::instance(), &EditorManager::currentEditorChanged, connect(EditorManager::instance(), &EditorManager::currentEditorChanged,
this, &QmlJSEditorPluginPrivate::currentEditorChanged); this, &QmlJSEditorPluginPrivate::currentEditorChanged);