diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-09-24 14:22:57 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2020-09-29 15:31:01 +0200 |
commit | fbc629892461662a20e12c38f182fddb1fcc3a81 (patch) | |
tree | 35acb8e52ee4bed5301b93e4ee30f4df2ee48b40 /src/imports/controls/macos/Slider.qml | |
parent | 5b711c1cb719d1147791ce23c43133a29d10a807 (diff) |
NativeStyle: add focus frame to the macOS style
This patch will add a focus frame to the macOS style.
We use one focus frame item that we move around according
to changes to the focus object.
It's normally the background delegate's responsibility to
draw a focus frame, so we take care to only draw the
native focus frame for controls with default delegates.
(to be consistent with the other styles)
Change-Id: Iaa7202675c1aad2fc19682563ac1afb6e686c105
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/macos/Slider.qml')
-rw-r--r-- | src/imports/controls/macos/Slider.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imports/controls/macos/Slider.qml b/src/imports/controls/macos/Slider.qml index ab72fcaa..e8e0e036 100644 --- a/src/imports/controls/macos/Slider.qml +++ b/src/imports/controls/macos/Slider.qml @@ -38,4 +38,6 @@ import QtQuick import QtQuick.NativeStyle as NativeStyle NativeStyle.DefaultSlider { + readonly property Item __focusFrameTarget: handle + readonly property Item __focusFrameStyleItem: handle } |