Warning, /libraries/pulseaudio-qt/tests/painspector/main.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2018 David Rosca <nowrep@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 import QtQuick 2.7 0007 import QtQuick.Layouts 1.3 0008 import QtQuick.Controls 2.2 0009 0010 import org.kde.pulseaudioqt.tests 0.1 as PulseAudioQt 0011 0012 import org.kde.kirigami 2.20 as Kirigami 0013 0014 Kirigami.ApplicationWindow { 0015 id: root 0016 0017 pageStack.initialPage: pageCards 0018 0019 PAPage { 0020 id: pageCards 0021 title: "Cards" 0022 model: PulseAudioQt.CardModel {} 0023 delegate: CardDelegate {} 0024 } 0025 0026 PAPage { 0027 id: pageSinks 0028 title: "Sinks" 0029 model: PulseAudioQt.SinkModel {} 0030 delegate: DeviceDelegate {} 0031 } 0032 0033 PAPage { 0034 id: pageSources 0035 title: "Sources" 0036 model: PulseAudioQt.SourceModel {} 0037 delegate: DeviceDelegate {} 0038 } 0039 0040 PAPage { 0041 id: pageSinkInputs 0042 title: "Sink Inputs" 0043 model: PulseAudioQt.SinkInputModel {} 0044 delegate: StreamDelegate {} 0045 } 0046 0047 PAPage { 0048 id: pageSourceOutputs 0049 title: "Source Outputs" 0050 model: PulseAudioQt.SourceOutputModel {} 0051 delegate: StreamDelegate {} 0052 } 0053 0054 PAPage { 0055 id: pageStreamRestores 0056 title: "Stream Restores" 0057 model: PulseAudioQt.StreamRestoreModel {} 0058 delegate: StreamDelegate {} 0059 } 0060 0061 PAPage { 0062 id: pageModules 0063 title: "Modules" 0064 model: PulseAudioQt.ModuleModel {} 0065 delegate: ModuleDelegate {} 0066 } 0067 0068 component PageAction : Kirigami.Action { 0069 required property PAPage page 0070 0071 text: page.title 0072 checked: page.visible 0073 0074 onTriggered: { 0075 root.pageStack.clear(); 0076 root.pageStack.push(page); 0077 } 0078 } 0079 0080 footer: Kirigami.NavigationTabBar { 0081 actions: [ 0082 PageAction { 0083 page: pageCards 0084 }, 0085 PageAction { 0086 page: pageSinks 0087 }, 0088 PageAction { 0089 page: pageSources 0090 }, 0091 PageAction { 0092 page: pageSinkInputs 0093 }, 0094 PageAction { 0095 page: pageSourceOutputs 0096 }, 0097 PageAction { 0098 page: pageStreamRestores 0099 }, 0100 PageAction { 0101 page: pageModules 0102 } 0103 ] 0104 } 0105 }