Skip to content

Commit

Permalink
document FileEdit.filter for scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
dogboydog committed Jul 6, 2023
1 parent ece0729 commit f5ed372
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/scripting-doc/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f5ed372

Please sign in to comment.