diff options
| author | Mitch Curtis <mitch.curtis@qt.io> | 2024-06-20 14:58:33 +0800 |
|---|---|---|
| committer | Mitch Curtis <mitch.curtis@qt.io> | 2024-06-21 20:28:04 +0800 |
| commit | 9335b0fd1f2358110b88127c9b34fa6867a14069 (patch) | |
| tree | 9b70960017653340cc995dde30d781bd47823a4f /src/quickcontrols/ios/DialogButtonBox.qml | |
| parent | 0232ef390ff44dfc2c057da74974eff3a344b92b (diff) | |
Controls: replace Qt.styleHints with Application.styleHints
As mentioned in QTBUG-95540, using the latter provides better type
information for tooling, and avoids the "this property only exists on
the object if Quick has been imported" issue.
Replace QtQml import in Fluent style's Config.qml with QtQuick to
provide access to the Application type.
Fixes: QTBUG-126512
Pick-to: 6.5 6.7 6.8
Change-Id: I4aac22e54f3b522f74acafd467ce22139352c9dd
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quickcontrols/ios/DialogButtonBox.qml')
| -rw-r--r-- | src/quickcontrols/ios/DialogButtonBox.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quickcontrols/ios/DialogButtonBox.qml b/src/quickcontrols/ios/DialogButtonBox.qml index f04088a9d1..b368a8290d 100644 --- a/src/quickcontrols/ios/DialogButtonBox.qml +++ b/src/quickcontrols/ios/DialogButtonBox.qml @@ -51,8 +51,8 @@ T.DialogButtonBox { NinePatchImageSelector on source { states: [ {"pressed": delegate.down}, - {"light": Qt.styleHints.colorScheme === Qt.Light}, - {"dark": Qt.styleHints.colorScheme === Qt.Dark}, + {"light": Application.styleHints.colorScheme === Qt.Light}, + {"dark": Application.styleHints.colorScheme === Qt.Dark}, ] } } @@ -67,8 +67,8 @@ T.DialogButtonBox { source: IOS.url + "dialogbuttonbox-separator" NinePatchImageSelector on source { states: [ - {"light": Qt.styleHints.colorScheme === Qt.Light}, - {"dark": Qt.styleHints.colorScheme === Qt.Dark} + {"light": Application.styleHints.colorScheme === Qt.Light}, + {"dark": Application.styleHints.colorScheme === Qt.Dark} ] } } |
