Example placeholder for composer alias

This commit is contained in:
miruka 2020-03-13 11:44:47 -04:00
parent 8c1c3ef05c
commit a0c42fe5a6

View File

@ -171,9 +171,15 @@ HGridLayout {
property bool changed: field.text !== currentAlias property bool changed: field.text !== currentAlias
id: aliasField id: aliasField
label.text: qsTr("Multi-account composer alias:") label.text: qsTr("Multi-account composer alias:")
field.onAccepted: applyChanges() field.onAccepted: applyChanges()
field.placeholderText: (
nameField.field.text ||
accountInfo.display_name ||
userId.substring(1)
)[0]
toolTip.text: qsTr( toolTip.text: qsTr(
"From any account, start a message with specified alias " + "From any account, start a message with specified alias " +