2017-12-20 14:54:05 +01:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
|
|
|
|
import Governikus.Global 1.0
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
height: Utils.dp(40)
|
|
|
|
|
|
|
|
signal requestPairing(string pDeviceId)
|
|
|
|
|
|
|
|
onClicked: {
|
2018-03-28 15:10:51 +02:00
|
|
|
if (isSupported) requestPairing(deviceId)
|
2017-12-20 14:54:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
id: nameText
|
2018-03-28 15:10:51 +02:00
|
|
|
color: Constants.secondary_text
|
2017-12-20 14:54:05 +01:00
|
|
|
width: parent.width
|
|
|
|
font.pixelSize: Utils.sp(16)
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
opacity: 0.87
|
2018-03-28 15:10:51 +02:00
|
|
|
text: {
|
|
|
|
settingsModel.translationTrigger
|
|
|
|
|
|
|
|
if (isSupported) {
|
|
|
|
return remoteDeviceName;
|
|
|
|
}
|
|
|
|
return remoteDeviceName + " (" + qsTr("Unsupported") + ")"
|
|
|
|
}
|
2017-12-20 14:54:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
width: parent.width
|
|
|
|
height: Utils.dp(1)
|
|
|
|
color: "black"
|
|
|
|
opacity: 0.1
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
}
|
|
|
|
}
|