diff options
author | Nicholas Bennett <nicholas.bennett@qt.io> | 2023-05-24 12:43:42 +0300 |
---|---|---|
committer | Nicholas Bennett <nicholas.bennett@qt.io> | 2023-05-30 10:40:43 +0300 |
commit | 75bbf7224fef52d5d838ae4de2f7c4bcd05c40d3 (patch) | |
tree | d8b94da10b6f3ad766667287fb24230bb764391a /examples | |
parent | ec1747b0d18718649b1d6fd8581b55d5012a9c87 (diff) |
Commonize popup behavior between camera settings and device list
Currently when you select a device in the in the device list popup
it does not close the popup, unlike with the camera settings popup list
This leads to some user-confusion regarding expected behavior of the
example.
I replicated the emission of the selected() signal as used in the
camera settings popup to fix this.
Pick-to: 6.5 6.2
Change-Id: I1ef5faf75dff702f61991b9ac1735364b187b10b
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimedia/declarative-camera/CameraListPopup.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/multimedia/declarative-camera/CameraListPopup.qml b/examples/multimedia/declarative-camera/CameraListPopup.qml index a1805bd69..5fd1384af 100644 --- a/examples/multimedia/declarative-camera/CameraListPopup.qml +++ b/examples/multimedia/declarative-camera/CameraListPopup.qml @@ -51,6 +51,7 @@ Popup { onClicked: { view.currentIndex = index cameraListPopup.currentValue = modelData + popup.selected() } } } |