From be68daef28a932aa6e45d0a877d1ae74d534f062 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 30 Nov 2011 17:49:29 +0100 Subject: [PATCH] take the clear button into account --- declarativeimports/plasmacomponents/qml/TextField.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/declarativeimports/plasmacomponents/qml/TextField.qml b/declarativeimports/plasmacomponents/qml/TextField.qml index c995f814a..248d010cc 100644 --- a/declarativeimports/plasmacomponents/qml/TextField.qml +++ b/declarativeimports/plasmacomponents/qml/TextField.qml @@ -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