From f5ed372e578c9f9868cef3c844ecdba0d88480e5 Mon Sep 17 00:00:00 2001 From: dogboydog Date: Thu, 6 Jul 2023 08:19:14 -0400 Subject: [PATCH] document FileEdit.filter for scripting --- docs/scripting-doc/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/scripting-doc/index.d.ts b/docs/scripting-doc/index.d.ts index 09255176c7..3ff961ad29 100644 --- a/docs/scripting-doc/index.d.ts +++ b/docs/scripting-doc/index.d.ts @@ -4370,6 +4370,13 @@ declare class FileEdit extends Qt.QWidget { * If `true`, the user will be prompted for a directory rather than a file. Defaults to `false`. */ isDirectory: boolean; + /** + * When specified, only files that match the filter are shown. + * The filter is given in a format like "Images (*.png *.xpm *.jpg)". + * If you want multiple filters, separate them with ';;', for example: + * ` "Images (*.png *.xpm *.jpg);;Text files (*.txt);;XML files (*.xml)"` + */ + filter: string; } /** * A widget that displays an {@link Image} on your dialog.