From ed36b6aab45e06a8be9c3653037e19d27f5ef64f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 20 Mar 2013 21:14:04 +0100 Subject: [PATCH] bigger clear button --- .../platformcomponents/touch/TextField.qml | 2 +- .../touch/TextFieldFocus.qml | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/platformcomponents/touch/TextField.qml b/src/declarativeimports/plasmacomponents/platformcomponents/touch/TextField.qml index 050cf3da8..d4b7cad28 100644 --- a/src/declarativeimports/plasmacomponents/platformcomponents/touch/TextField.qml +++ b/src/declarativeimports/plasmacomponents/platformcomponents/touch/TextField.qml @@ -175,7 +175,7 @@ Item { parent: mouseEventListener // reparent to the MouseFilter for MouseArea to work id: clearButton source: "edit-clear-locationbar-rtl" - height: Math.max(textInput.height, theme.smallIconSize) + height: Math.max(textInput.height, theme.mediumIconSize) width: height opacity: (textInput.text != "" && clearButtonShown) ? 1 : 0 Behavior on opacity { diff --git a/src/declarativeimports/plasmacomponents/platformcomponents/touch/TextFieldFocus.qml b/src/declarativeimports/plasmacomponents/platformcomponents/touch/TextFieldFocus.qml index 8320a8a4f..237893319 100644 --- a/src/declarativeimports/plasmacomponents/platformcomponents/touch/TextFieldFocus.qml +++ b/src/declarativeimports/plasmacomponents/platformcomponents/touch/TextFieldFocus.qml @@ -25,25 +25,6 @@ Item { id: main state: parent.state - PlasmaCore.Svg { - id: lineEditSvg - imagePath: "widgets/lineedit" - onRepaintNeeded: { - if (lineEditSvg.hasElement("hint-focus-over-base")) { - main.z = 800 - } else { - main.z = 0 - } - } - Component.onCompleted: { - if (lineEditSvg.hasElement("hint-focus-over-base")) { - main.z = 800 - } else { - main.z = 0 - } - } - } - PlasmaCore.FrameSvgItem { id: hover