take the clear button into account

This commit is contained in:
Marco Martin 2011-11-30 17:49:29 +01:00
parent 35580a01be
commit be68daef28

View File

@ -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