Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/StreamListItem.qml
Show All 13 Lines | 1 | /* | |||
---|---|---|---|---|---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | import QtQuick 2.0 | 21 | import QtQuick 2.0 | ||
22 | import QtQuick.Controls 1.0 | 22 | import QtQuick.Controls 2.0 | ||
23 | import QtQuick.Layouts 1.0 | 23 | import QtQuick.Layouts 1.0 | ||
24 | 24 | | |||
25 | import org.kde.kquickcontrolsaddons 2.0 | 25 | import org.kde.kirigami 2.5 as Kirigami | ||
26 | | ||||
27 | import org.kde.plasma.private.volume 0.1 | 26 | import org.kde.plasma.private.volume 0.1 | ||
28 | 27 | | |||
29 | ColumnLayout { | 28 | ColumnLayout { | ||
30 | id: delegate | 29 | id: delegate | ||
31 | 30 | | |||
32 | property alias deviceModel: deviceComboBox.model | 31 | property alias deviceModel: deviceComboBox.model | ||
33 | readonly property bool isEventStream: Name == "sink-input-by-media-role:event" | 32 | readonly property bool isEventStream: Name == "sink-input-by-media-role:event" | ||
34 | 33 | | |||
35 | width: parent.width | 34 | width: parent.width | ||
36 | 35 | | |||
37 | RowLayout { | 36 | RowLayout { | ||
38 | Layout.fillWidth: true | 37 | Layout.fillWidth: true | ||
39 | spacing: units.smallSpacing * 2 | 38 | spacing: units.smallSpacing * 2 | ||
40 | 39 | | |||
41 | QIconItem { | 40 | Kirigami.Icon { | ||
42 | id: clientIcon | 41 | Layout.alignment: Qt.AlignHCenter | ||
43 | | ||||
44 | Layout.preferredHeight: delegateColumn.height * 0.60 | 42 | Layout.preferredHeight: delegateColumn.height * 0.60 | ||
45 | Layout.preferredWidth: Layout.preferredHeight | 43 | Layout.preferredWidth: Layout.preferredHeight | ||
46 | icon: IconName || "unknown" | 44 | source: IconName || "unknown" | ||
47 | } | 45 | } | ||
48 | 46 | | |||
49 | ColumnLayout { | 47 | ColumnLayout { | ||
50 | id: delegateColumn | 48 | id: delegateColumn | ||
51 | Layout.fillWidth: true | 49 | Layout.fillWidth: true | ||
52 | 50 | | |||
53 | RowLayout { | 51 | RowLayout { | ||
54 | Label { | 52 | Label { | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |