From 9b59f50d48a729493c2c8d6e61c227e38f319f68 Mon Sep 17 00:00:00 2001 From: Dheerendra Purohit Date: Fri, 4 Jul 2025 17:24:00 +0530 Subject: Doc: Clarify FontDialog.selectedFont and options documentation Updated the FontDialog documentation to clarify that the confirmation button may appear as "Select" or "Open", and rephrased the options selection to better describe the default behaviour and the effect of each option. Pick-to: 6.10 6.9 Fixes: QTBUG-94965 Change-Id: I9da01739df30795211c51e3f6b378e9c30b37da8 Reviewed-by: Axel Spoerl --- src/quickdialogs/quickdialogs/qquickfontdialog.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/quickdialogs/quickdialogs/qquickfontdialog.cpp b/src/quickdialogs/quickdialogs/qquickfontdialog.cpp index 473a3b7ad5..ad92b5d17a 100644 --- a/src/quickdialogs/quickdialogs/qquickfontdialog.cpp +++ b/src/quickdialogs/quickdialogs/qquickfontdialog.cpp @@ -98,8 +98,9 @@ void QQuickFontDialog::setCurrentFont(const QFont &font) fonts in the dialog, even before the final selection has been made. The \l {Dialog::}{accepted()} signal can be handled to get the final selection. - When the user has clicked \uicontrol Open to accept a font, a signal handler - for the \l {Dialog::}{accepted()} signal can query the selectedFont property to + When the user has clicked \uicontrol Select (or \uicontrol Open, depending on + platform) to accept a font, a signal handler for the + \l {Dialog::}{accepted()} signal can query the selectedFont property to get the final font that was selected by the user. \sa currentFont, {Dialog::}{accepted()} @@ -126,7 +127,8 @@ void QQuickFontDialog::setSelectedFont(const QFont &font) This property holds the various options that affect the look and feel of the dialog. - By default, all options are disabled. + By default, no options are set, meaning all font types are shown and the dialog displays + standard \uicontrol Select and \uicontrol Cancel buttons. Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on -- cgit v1.2.3