Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/DeviceList.qml
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 53 | view: ListView { | |||
---|---|---|---|---|---|
59 | 59 | | |||
60 | Timer { | 60 | Timer { | ||
61 | interval: 2000 | 61 | interval: 2000 | ||
62 | running: view.visible | 62 | running: view.visible | ||
63 | repeat: true | 63 | repeat: true | ||
64 | onTriggered: view._evalTrigger++; | 64 | onTriggered: view._evalTrigger++; | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | Kirigami.Heading { | ||||
68 | anchors.centerIn: parent | ||||
69 | visible: view.count === 0 | ||||
70 | level: 2 | ||||
71 | text: i18n("No Thunderbolt devices connected") | ||||
72 | opacity: 0.3 | ||||
73 | } | ||||
74 | | ||||
67 | delegate: Kirigami.AbstractListItem { | 75 | delegate: Kirigami.AbstractListItem { | ||
68 | id: item | 76 | id: item | ||
69 | width: view.width | 77 | width: view.width | ||
70 | 78 | | |||
71 | RowLayout { | 79 | RowLayout { | ||
72 | id: layout | 80 | id: layout | ||
73 | spacing: Kirigami.Units.smallSpacing * 2 | 81 | spacing: Kirigami.Units.smallSpacing * 2 | ||
74 | property bool indicateActiveFocus: item.pressed || Kirigami.Settings.tabletMode || item.activeFocus || (item.ListView.view ? item.ListView.view.activeFocus : false) | 82 | property bool indicateActiveFocus: item.pressed || Kirigami.Settings.tabletMode || item.activeFocus || (item.ListView.view ? item.ListView.view.activeFocus : false) | ||
Show All 39 Lines |