From ece07296ba91fd47cd7695b71556563eabaef20b Mon Sep 17 00:00:00 2001 From: dogboydog Date: Wed, 5 Jul 2023 18:41:00 -0400 Subject: [PATCH] add FileEdit.isDirectory to scripting doc and fix @link tags in Dialog scripting doc --- docs/scripting-doc/index.d.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/scripting-doc/index.d.ts b/docs/scripting-doc/index.d.ts index 72f9cc52a9..09255176c7 100644 --- a/docs/scripting-doc/index.d.ts +++ b/docs/scripting-doc/index.d.ts @@ -4363,9 +4363,13 @@ declare class FileEdit extends Qt.QWidget { fileUrl: Qt.QUrl; /** - * Signal emitted when the selected fileUrl changes + * Signal emitted when the selected fileUrl changes. */ fileUrlChanged: Signal; + /** + * If `true`, the user will be prompted for a directory rather than a file. Defaults to `false`. + */ + isDirectory: boolean; } /** * A widget that displays an {@link Image} on your dialog. @@ -4582,20 +4586,20 @@ declare class Dialog extends Qt.QWidget { done(resultCode: typeof Dialog.Rejected | typeof Dialog.Accepted): void; /** - * Called when the dialog is closed via {@link accept()} or the {@link done()} + * Called when the dialog is closed via {@link accept} or the {@link done} * method is called with {@link Dialog.Accepted} as its argument. */ accepted: Signal; /** - * Called when the dialog is closed via the X button, {@link reject()}, or the - * {@link done()} method is called with {@link Dialog.Rejected} as its + * Called when the dialog is closed via the X button, {@link reject}, or the + * {@link done} method is called with {@link Dialog.Rejected} as its * argument. */ rejected: Signal; /** - * Called when the dialog is closed or the {@link done()} method is called. + * Called when the dialog is closed or the {@link done} method is called. * The number value it provides is either {@link Dialog.Accepted} or * {@link Dialog.Rejected}. */