From fb9b452f18c98b06d31d115237cdc7a4450c9268 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Fri, 20 May 2022 22:53:04 +0200 Subject: Fix documentation that claims that QStyleHints is read only Most properties are, but some properties (such as useHoverEffects or showShortcutsInContextMenus) can be set by the application. Pick-to: 6.3 6.2 Change-Id: Ia6e0563a892f26456d595026f6c82502a9e888da Reviewed-by: Friedemann Kleint --- src/gui/kernel/qstylehints.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gui/kernel/qstylehints.cpp b/src/gui/kernel/qstylehints.cpp index cb07888170..64c3a88be2 100644 --- a/src/gui/kernel/qstylehints.cpp +++ b/src/gui/kernel/qstylehints.cpp @@ -71,11 +71,10 @@ public: An object of this class, obtained from QGuiApplication, provides access to certain global user interface parameters of the current platform. - Access is read only; typically the platform itself provides the user a way to tune these - parameters. - - Access to these parameters are useful when implementing custom user interface components, in that - they allow the components to exhibit the same behaviour and feel as other components. + Access to most settings is read only. The platform itself usually provides the user with + ways to tune these parameters. Authors of custom user interface components should read + relevant settings to allow the components to exhibit the same behavior and feel as other + components. \sa QGuiApplication::styleHints() */ -- cgit v1.2.3