aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/glsleditor/GLSLEditor.json.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/glsleditor/GLSLEditor.json.in')
-rw-r--r--src/plugins/glsleditor/GLSLEditor.json.in47
1 files changed, 46 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/GLSLEditor.json.in b/src/plugins/glsleditor/GLSLEditor.json.in
index 3e5ff3831c7..915ae7ae029 100644
--- a/src/plugins/glsleditor/GLSLEditor.json.in
+++ b/src/plugins/glsleditor/GLSLEditor.json.in
@@ -15,5 +15,50 @@
\"Category\" : \"Other Languages\",
\"Description\" : \"Editor for GLSL.\",
\"Url\" : \"http://www.qt.io\",
- $$dependencyList
+ $$dependencyList,
+
+ \"Mimetypes\" : \"
+ <?xml version=\'1.0\'?>
+ <mime-info xmlns=\'http://www.freedesktop.org/standards/shared-mime-info\'>
+
+ <mime-type type=\'application/x-glsl\'>
+ <alias type=\'text/x-glsl\'/>
+ <sub-class-of type=\'text/plain\'/>
+ <comment>GLSL Shader file</comment>
+ <glob pattern=\'*.glsl\'/>
+ <glob pattern=\'*.shader\'/>
+ </mime-type>
+
+ <mime-type type=\'text/x-glsl-frag\'>
+ <sub-class-of type=\'text/x-glsl\'/>
+ <comment>GLSL Fragment Shader file</comment>
+ <glob pattern=\'*.frag\'/>
+ </mime-type>
+
+ <mime-type type=\'text/x-glsl-es-frag\'>
+ <sub-class-of type=\'text/x-glsl\'/>
+ <comment>GLSL/ES Fragment Shader file</comment>
+ <glob pattern=\'*.fsh\'/>
+ </mime-type>
+
+ <mime-type type=\'text/x-glsl-vert\'>
+ <sub-class-of type=\'text/x-glsl\'/>
+ <comment>GLSL Vertex Shader file</comment>
+ <glob pattern=\'*.vert\'/>
+ </mime-type>
+
+ <mime-type type=\'text/x-glsl-es-vert\'>
+ <sub-class-of type=\'text/x-glsl\'/>
+ <comment>GLSL/ES Vertex Shader file</comment>
+ <glob pattern=\'*.vsh\'/>
+ </mime-type>
+
+ <mime-type type=\'text/x-glsl-es-geometry\'>
+ <sub-class-of type=\'text/x-glsl\'/>
+ <comment>GLSL/ES Geometry Shader file</comment>
+ <glob pattern=\'*.gsh\'/>
+ </mime-type>
+
+ </mime-info>
+ \"
}