aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2024-02-29 14:34:26 +0100
committerDavid Schulz <david.schulz@qt.io>2024-02-29 13:57:39 +0000
commit02bac284885be6760102f92ba3eadb0bd9354d24 (patch)
tree058e10a17a9c5debe4e44e28bf749c3124736492 /src/plugins/texteditor
parent251a8a22102501097c54a7cf527b2950fd27cf7c (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.in12
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>"
+ ]
}