fix SendContactRequestModal (missing) margins/padding
This commit is contained in:
parent
403e85ded7
commit
3b560157be
|
@ -16,6 +16,7 @@ StatusModal {
|
|||
property var contactsStore
|
||||
|
||||
headerSettings.title: qsTr("Send Contact Request to chat key")
|
||||
padding: d.contentMargins
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
|
@ -104,52 +105,47 @@ StatusModal {
|
|||
}
|
||||
}
|
||||
|
||||
contentItem: Item {
|
||||
Column {
|
||||
id: content
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.margins: d.contentMargins
|
||||
spacing: d.contentSpacing
|
||||
contentItem: Column {
|
||||
id: content
|
||||
spacing: d.contentSpacing
|
||||
|
||||
StatusInput {
|
||||
id: chatKeyInput
|
||||
input.edit.objectName: "SendContactRequestModal_ChatKey_Input"
|
||||
StatusInput {
|
||||
id: chatKeyInput
|
||||
input.edit.objectName: "SendContactRequestModal_ChatKey_Input"
|
||||
|
||||
placeholderText: qsTr("Enter chat key here")
|
||||
input.text: input.edit.focus? d.realChatKey : d.elidedChatKey
|
||||
input.rightComponent: {
|
||||
if(d.showPasteButton)
|
||||
return pasteButtonComponent
|
||||
else if(d.showChatKeyValidationIndicator)
|
||||
return chatKeyValidationIndicator
|
||||
else
|
||||
return null
|
||||
}
|
||||
input.onTextChanged: {
|
||||
if(input.edit.focus)
|
||||
{
|
||||
d.textChanged(text)
|
||||
}
|
||||
placeholderText: qsTr("Enter chat key here")
|
||||
input.text: input.edit.focus? d.realChatKey : d.elidedChatKey
|
||||
input.rightComponent: {
|
||||
if(d.showPasteButton)
|
||||
return pasteButtonComponent
|
||||
else if(d.showChatKeyValidationIndicator)
|
||||
return chatKeyValidationIndicator
|
||||
else
|
||||
return null
|
||||
}
|
||||
input.onTextChanged: {
|
||||
if(input.edit.focus)
|
||||
{
|
||||
d.textChanged(text)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
StatusInput {
|
||||
id: messageInput
|
||||
input.edit.objectName: "SendContactRequestModal_SayWhoYouAre_Input"
|
||||
charLimit: d.maxMsgLength
|
||||
StatusInput {
|
||||
id: messageInput
|
||||
input.edit.objectName: "SendContactRequestModal_SayWhoYouAre_Input"
|
||||
charLimit: d.maxMsgLength
|
||||
|
||||
placeholderText: qsTr("Say who you are / why you want to become a contact...")
|
||||
input.multiline: true
|
||||
minimumHeight: d.msgHeight
|
||||
maximumHeight: d.msgHeight
|
||||
input.verticalAlignment: TextEdit.AlignTop
|
||||
placeholderText: qsTr("Say who you are / why you want to become a contact...")
|
||||
input.multiline: true
|
||||
minimumHeight: d.msgHeight
|
||||
maximumHeight: d.msgHeight
|
||||
input.verticalAlignment: TextEdit.AlignTop
|
||||
|
||||
validators: [StatusMinLengthValidator {
|
||||
minLength: d.minMsgLength
|
||||
errorMessage: Utils.getErrorMessage(messageInput.errors, qsTr("who are you"))
|
||||
}]
|
||||
}
|
||||
validators: [StatusMinLengthValidator {
|
||||
minLength: d.minMsgLength
|
||||
errorMessage: Utils.getErrorMessage(messageInput.errors, qsTr("who are you"))
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue