2 * Copyright 2012 Intel Corporation.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
12 property string deviceName
13 property string address
14 property string icon: ""
15 property string alias: ""
16 property string dbuspath: ""
17 property variant uuids: []
19 property int containerHeight: 80
20 height: containerHeight
25 id: availableBluetoothItem
26 source: "/usr/share/hfdialer/images/ivi_btn-list-inactive.png"
27 anchors {fill: parent; leftMargin: 8; rightMargin: 8; topMargin: 8}
31 source: icon == "phone" ? "/usr/share/hfdialer/images/bluetooth-smartphone.png" :
32 "/usr/share/hfdialer/images/computer.png"
33 height: availableBluetoothItem.containerHeight * 0.75
35 anchors {left: parent.left; verticalCenter: parent.verticalCenter; leftMargin: icon == "phone"? 10 : 10;}
41 anchors {left: iconImg.right; right: parent.right; top: parent.top; bottom: parent.bottom; rightMargin: 10; leftMargin: icon == "phone"? 18 : 18;}
42 verticalAlignment: Text.AlignVCenter
43 height: availableBluetoothItem.containerHeight
44 font.pixelSize: parent.height / 2
49 elide: Text.ElideRight
59 availableBluetoothItem.source = "/usr/share/hfdialer/images/ivi_btn-list.png"
62 availableBluetoothItem.source = "/usr/share/hfdialer/images/ivi_btn-list-inactive.png"