take the clear button into account
This commit is contained in:
parent
35580a01be
commit
be68daef28
@ -149,7 +149,7 @@ Item {
|
||||
verticalCenter: parent.verticalCenter
|
||||
// TODO: see what is the correct policy for margins
|
||||
leftMargin: 2 * base.margins.left
|
||||
rightMargin: 2 * base.margins.right
|
||||
rightMargin: 2 * base.margins.right + (clearButton.opacity > 0 ? clearButton.width : 0)
|
||||
}
|
||||
selectByMouse: true
|
||||
color: theme.textColor
|
||||
@ -163,6 +163,7 @@ Item {
|
||||
}
|
||||
|
||||
PlasmaCore.SvgItem {
|
||||
id: clearButton
|
||||
svg: PlasmaCore.Svg {imagePath: "widgets/lineedit"}
|
||||
elementId: "clearbutton"
|
||||
width: textInput.height
|
||||
|
Loading…
Reference in New Issue
Block a user