diff options
author | David Schulz <david.schulz@qt.io> | 2024-02-29 14:34:26 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2024-02-29 13:57:39 +0000 |
commit | 02bac284885be6760102f92ba3eadb0bd9354d24 (patch) | |
tree | 058e10a17a9c5debe4e44e28bf749c3124736492 /src/plugins/texteditor | |
parent | 251a8a22102501097c54a7cf527b2950fd27cf7c (diff) |
TextEditor: add mime type for device tree source files
Fixes: QTCREATORBUG-19029
Change-Id: I1959681cb7e0f9466cea3344836d7029a98b4548
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/texteditor')
-rw-r--r-- | src/plugins/texteditor/TextEditor.json.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/texteditor/TextEditor.json.in b/src/plugins/texteditor/TextEditor.json.in index 5fbf3e3067..447d9c91c6 100644 --- a/src/plugins/texteditor/TextEditor.json.in +++ b/src/plugins/texteditor/TextEditor.json.in @@ -15,5 +15,15 @@ "Category" : "Core", "Description" : "Text editor framework and the implementation of the basic text editor.", "Url" : "http://www.qt.io", - ${IDE_PLUGIN_DEPENDENCIES} + ${IDE_PLUGIN_DEPENDENCIES}, + "Mimetypes" : [ + "<?xml version='1.0'?>", + "<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>", + " <mime-type type='text/vnd.qtcreator.devicetree.source'>", + " <comment>Device tree source files</comment>", + " <sub-class-of type='text/plain'/>", + " <glob pattern='*.dts' weight='80'/>", + " </mime-type>", + "</mime-info>" + ] } |