Add tooltips to the device settings page
Add tooltips to the device settings page BUG: 456859
This commit is contained in:
@@ -92,12 +92,14 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
rightActions: [
|
rightActions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
|
text: i18n("Cancel editing display name")
|
||||||
icon.name: "edit-delete-remove"
|
icon.name: "edit-delete-remove"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
deviceDelegate.editDeviceName = false
|
deviceDelegate.editDeviceName = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
|
text: i18n("Confirm new display name")
|
||||||
icon.name: "checkmark"
|
icon.name: "checkmark"
|
||||||
visible: nameField.text != model.displayName
|
visible: nameField.text != model.displayName
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
@@ -111,25 +113,36 @@ Kirigami.ScrollablePage {
|
|||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
|
id: editDeviceAction
|
||||||
text: i18n("Edit device name")
|
text: i18n("Edit device name")
|
||||||
iconName: "document-edit"
|
iconName: "document-edit"
|
||||||
onTriggered: deviceDelegate.editDeviceName = true
|
onTriggered: deviceDelegate.editDeviceName = true
|
||||||
}
|
}
|
||||||
|
QQC2.ToolTip {
|
||||||
|
text: editDeviceAction.text
|
||||||
|
delay: Kirigami.Units.toolTipDelay
|
||||||
|
}
|
||||||
}
|
}
|
||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
visible: Controller.encryptionSupported
|
visible: Controller.encryptionSupported
|
||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
|
id: verifyDeviceAction
|
||||||
text: i18n("Verify device")
|
text: i18n("Verify device")
|
||||||
iconName: "security-low-symbolic"
|
iconName: "security-low-symbolic"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
devices.connection.startKeyVerificationSession(devices.connection.localUserId, model.id)
|
devices.connection.startKeyVerificationSession(devices.connection.localUserId, model.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
QQC2.ToolTip {
|
||||||
|
text: verifyDeviceAction.text
|
||||||
|
delay: Kirigami.Units.toolTipDelay
|
||||||
|
}
|
||||||
}
|
}
|
||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
|
id: logoutDeviceAction
|
||||||
text: i18n("Logout device")
|
text: i18n("Logout device")
|
||||||
iconName: "edit-delete-remove"
|
iconName: "edit-delete-remove"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
@@ -137,6 +150,10 @@ Kirigami.ScrollablePage {
|
|||||||
passwordSheet.open()
|
passwordSheet.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
QQC2.ToolTip {
|
||||||
|
text: logoutDeviceAction.text
|
||||||
|
delay: Kirigami.Units.toolTipDelay
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user