Warning, /plasma/kpipewire/src/monitors/autotests/mediamonitortest.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2023 Fushan Wen <qydwhotmail@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 import QtQuick
0008 import org.kde.pipewire.monitor as Monitor
0009 
0010 Item {
0011     id: root
0012     readonly property alias monitor: monitor
0013     readonly property alias count: repeater.count
0014     property QtObject modelData
0015     Repeater {
0016         id: repeater
0017         model: Monitor.MediaMonitor {
0018             id: monitor
0019             role: Monitor.MediaMonitor.Music
0020         }
0021         Item {
0022             Component.onCompleted: {
0023                 root.modelData = model;
0024             }
0025         }
0026     }
0027 }