Merge pull request #11387 from Roy-043/Draft-more-file-extensions-also-in-caps

Draft: more file extensions also in caps
This commit is contained in:
Roy-043
2023-11-14 10:34:14 +01:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -180,7 +180,7 @@
<item row="1" column="1">
<widget class="Gui::FileChooser" name="fcFontFile">
<property name="filter">
<string>Font files (*.ttf *.otf *.pfb)</string>
<string>Font files (*.ttf *.otf *.pfb *.TTF *.OTF *.PFB)</string>
</property>
</widget>
</item>

View File

@@ -24,7 +24,7 @@
<item row="0" column="1">
<widget class="Gui::FileChooser" name="File">
<property name="filter">
<string>pattern files (*.pat)</string>
<string>Pattern files (*.pat *.PAT)</string>
</property>
</widget>
</item>

View File

@@ -543,7 +543,7 @@ such as &quot;Arial:Bold&quot;</string>
</size>
</property>
<property name="filter">
<string>Font files (*.ttf *.otf *.pfb)</string>
<string>Font files (*.ttf *.otf *.pfb *.TTF *.OTF *.PFB)</string>
</property>
<property name="toolTip">
<string>Select a font file</string>

View File

@@ -293,7 +293,7 @@ class AnnotationStyleEditor(gui_base.GuiCommandSimplest):
QtGui.QApplication.activeWindow(),
translate("draft","Open styles file"),
None,
translate("draft","JSON file (*.json)"))
translate("draft","JSON files (*.json *.JSON)"))
if filename and filename[0]:
nstyles = {}
with open(filename[0]) as f: