aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDheerendra Purohit <[email protected]>2025-07-04 17:24:00 +0530
committerDheerendra Purohit <[email protected]>2025-07-07 09:38:45 +0530
commit9b59f50d48a729493c2c8d6e61c227e38f319f68 (patch)
treecb23b42fd4430dfd9e60d208828a302519a615ee
parent0323d664f745b3995955b7fa054a35465740aa1f (diff)
Doc: Clarify FontDialog.selectedFont and options documentationHEADdev
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 <[email protected]>
-rw-r--r--src/quickdialogs/quickdialogs/qquickfontdialog.cpp8
1 files changed, 5 insertions, 3 deletions
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