diff options
author | Nicholas Bennett <nicholas.bennett@qt.io> | 2023-05-24 12:43:42 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-05-30 15:56:31 +0000 |
commit | ed3803ed55e39b9a636ef184da1fd7c6304de85e (patch) | |
tree | 9cb86b90621d884ae5aac3e65bd0dea1c333c049 | |
parent | eb3bbafe163631db7cc7cebd10edfb49a74424f9 (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.
Change-Id: I1ef5faf75dff702f61991b9ac1735364b187b10b
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
(cherry picked from commit 75bbf7224fef52d5d838ae4de2f7c4bcd05c40d3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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() } } } |