diff options
author | srimaldia <hariasti.srimaldia-1@jp.alps.com> | 2016-12-15 19:12:47 +0900 |
---|---|---|
committer | srimaldia <hariasti.srimaldia-1@jp.alps.com> | 2016-12-15 19:12:47 +0900 |
commit | e895902fedc94d3e81e03ed4908ff0415a478df4 (patch) | |
tree | 753228747e3b09143c88638568c77f660ff94560 /app/bluetooth/Bluetooth.qml | |
parent | b90978a93e23a91d8c3f4fa8ec023c60340bdea5 (diff) |
Modify UI for Bluetooth and Wifi
Signed-off-by: srimaldia <hariasti.srimaldia-1@jp.alps.com>
Diffstat (limited to 'app/bluetooth/Bluetooth.qml')
-rw-r--r-- | app/bluetooth/Bluetooth.qml | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/app/bluetooth/Bluetooth.qml b/app/bluetooth/Bluetooth.qml index ded2c36..e8cca1a 100644 --- a/app/bluetooth/Bluetooth.qml +++ b/app/bluetooth/Bluetooth.qml @@ -189,10 +189,28 @@ SettingPage { } Button { + id: removeButton + anchors.top:parent.top + anchors.topMargin: 15 + anchors.right: parent.right + text: "Unpair" + MouseArea { + anchors.fill: parent + onClicked: { + request(btAPIpath + 'remove_device?value=' + btAddr.text, function (o) { + console.log(o.responseText) + }) + btDeviceList.remove(findDevice(btAddr.text)) + } + } + + } + + Button { id: connectButton anchors.top:parent.top anchors.topMargin: 15 - anchors.right: parent.right + anchors.right: removeButton.left anchors.rightMargin: 10 text:(btConnectstatus.text == "True")? "Disconnect":((btPairable.text == "True")? "Connect":"Pair") @@ -231,26 +249,6 @@ SettingPage { } } } - /*Image{ - id: removeDevice - anchors.top:parent.top - anchors.topMargin: 15 - anchors.right: parent.right - anchors.rightMargin: 5 - width: 25 - height: 25 - source: "component/images/trash.png" - - MouseArea { - anchors.fill: parent - onClicked: { - request(btAPIpath + 'remove_device?value=' + btAddr.text, function (o) { - console.log(o.responseText) - }) - btDeviceList.remove(findDevice(btAddr.text)) - } - } - }*/ } } |