Changeset View
Changeset View
Standalone View
Standalone View
src/applet/package/contents/ui/FullRepresentation.qml
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 46 | Action { | |||
---|---|---|---|---|---|
53 | 53 | | |||
54 | onTriggered: { | 54 | onTriggered: { | ||
55 | toolbar.toggleBluetooth(); | 55 | toolbar.toggleBluetooth(); | ||
56 | } | 56 | } | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | header: Toolbar { | 59 | header: Toolbar { | ||
60 | id: toolbar | 60 | id: toolbar | ||
61 | visible: !btManager.bluetoothBlocked && btManager.adapters.length > 0 | 61 | visible: btManager.adapters.length > 0 | ||
62 | enabled: !btManager.bluetoothBlocked | ||||
62 | } | 63 | } | ||
63 | 64 | | |||
64 | FocusScope { | 65 | FocusScope { | ||
65 | anchors.fill: parent | 66 | anchors.fill: parent | ||
66 | focus: true | 67 | focus: true | ||
67 | 68 | | |||
68 | PlasmaBt.DevicesProxyModel { | 69 | PlasmaBt.DevicesProxyModel { | ||
69 | id: devicesModel | 70 | id: devicesModel | ||
70 | sourceModel: BluezQt.DevicesModel { } | 71 | sourceModel: BluezQt.DevicesModel { } | ||
71 | } | 72 | } | ||
72 | 73 | | |||
73 | PlasmaExtras.ScrollArea { | 74 | PlasmaExtras.ScrollArea { | ||
74 | id: scrollView | 75 | id: scrollView | ||
75 | 76 | | |||
76 | anchors.fill: parent | 77 | anchors.fill: parent | ||
77 | 78 | | |||
78 | visible: toolbar.visible | 79 | visible: btManager.adapters.length > 0 && !btManager.bluetoothBlocked | ||
79 | 80 | | |||
80 | ListView { | 81 | ListView { | ||
81 | anchors.fill: parent | 82 | anchors.fill: parent | ||
82 | clip: true | 83 | clip: true | ||
83 | model: devicesModel | 84 | model: devicesModel | ||
84 | currentIndex: -1 | 85 | currentIndex: -1 | ||
85 | enabled: btManager.bluetoothOperational | 86 | enabled: btManager.bluetoothOperational | ||
86 | boundsBehavior: Flickable.StopAtBounds | 87 | boundsBehavior: Flickable.StopAtBounds | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |