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