feat(ui/modules/Common/Form/TransparentTextInput): background color has the same size that content

This commit is contained in:
Ronan Abhamon 2016-12-08 14:13:59 +01:00
parent 20ec85a029
commit 65dd1940c0
2 changed files with 8 additions and 4 deletions

View file

@ -25,13 +25,16 @@ Item {
}
Rectangle {
anchors.fill: parent
color: textInput.activeFocus && !readOnly
color: textInput.activeFocus && !textInput.readOnly
? TransparentTextInputStyle.backgroundColor
: // No Style constant, see component name.
// It's a `transparent` TextInput.
'transparent'
z: -1
'transparent'
height: parent.height
width: {
var width = textInput.contentWidth + parent.padding * 2
return width < parent.width ? width : parent.width
}
}
TextInput {

View file

@ -165,6 +165,7 @@ ColumnLayout {
id: infoList
width: flick.contentWidth
ListForm {
defaultData: _contact.sipAddresses
placeholder: qsTr('sipAccountsInput')