Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qplatformvideodevices.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
7
8QPlatformVideoDevices::QPlatformVideoDevices(QPlatformMediaIntegration *integration)
9 : m_integration(integration)
10{
11 qRegisterMetaType<PrivateTag>(); // for queued connections
12}
13
14QPlatformVideoDevices::~QPlatformVideoDevices() = default;
15
16void QPlatformVideoDevices::onVideoInputsChanged() {
17 m_videoInputs.reset();
18 emit videoInputsChanged(PrivateTag{});
19}
20
21QList<QCameraDevice> QPlatformVideoDevices::videoInputs() const {
22 return m_videoInputs.ensure([this]() {
23 return findVideoInputs();
24 });
25}
26
27QT_END_NAMESPACE
28
29#include "moc_qplatformvideodevices_p.cpp"
Combined button and popup list for selecting options.