summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/mimetypemagicdialog.ui
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2015-03-24 14:49:23 +0100
committerEike Ziller <eike.ziller@theqtcompany.com>2015-03-25 15:39:22 +0000
commitd8055b62f420f244728aae4069cc2b0a5983afe4 (patch)
treee38d70ee928f0a7039e5ffa8b298bde6298afdf3 /src/plugins/coreplugin/mimetypemagicdialog.ui
parentbc7a24afff2a6c4c579b5687f70e0ccb0d178e0a (diff)
downloadqt-creator-d8055b62f420f244728aae4069cc2b0a5983afe4.tar.gz
MimeDatabase: Allow regular expressions for magic rules
This extends the freedesktop standard, which really is lacking in many ways. Adds a type "regexp", which interprets the "value" as a QRegularExpression with MultilineOption and DotMatchesEverythingOption. The range/offset is the range of the sub-string that is matched against the regular expression. If the value for the end of the range is omitted, or the same as the start, the whole string is matched against the regular expression. The mask is ignored. Change-Id: Iaaaf769451ed23112f1fbeee254fdff3198b74a2 Reviewed-by: BogDan Vatra <bogdan@kde.org>
Diffstat (limited to 'src/plugins/coreplugin/mimetypemagicdialog.ui')
-rw-r--r--src/plugins/coreplugin/mimetypemagicdialog.ui5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/mimetypemagicdialog.ui b/src/plugins/coreplugin/mimetypemagicdialog.ui
index 12097826c3..bca3dad241 100644
--- a/src/plugins/coreplugin/mimetypemagicdialog.ui
+++ b/src/plugins/coreplugin/mimetypemagicdialog.ui
@@ -54,6 +54,11 @@
</item>
<item>
<property name="text">
+ <string>RegExp</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
<string>Host16</string>
</property>
</item>