X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=qml%2Fubi%2Fcomponents%2FButton.qml;fp=qml%2Fubi%2Fcomponents%2FButton.qml;h=32b75e051ccf4e9a83e6fc0aae9e259486248fc8;hb=5a25a20f2cc3029bcb66f5897088cd391d3c450d;hp=3eb5ad8cd320c98b2afa04b39a9543b71aab3fb8;hpb=dd71088cb495c09f4fa64ee1318f51315ee4e3fd;p=ubi diff --git a/qml/ubi/components/Button.qml b/qml/ubi/components/Button.qml index 3eb5ad8..32b75e0 100644 --- a/qml/ubi/components/Button.qml +++ b/qml/ubi/components/Button.qml @@ -28,7 +28,6 @@ Item { id: box color: root.disabled ? Const.COOL_GREY_COLOR : "black" height: root.iconSource=="" ? textbox.height+20 : icon.height+20 - //width: textbox.width<100 ? 120 : textbox.width+20 width: root.iconSource=="" ? textbox.width+30 : icon.width+30 radius: 10 } @@ -41,8 +40,6 @@ Item { color: Const.WARM_GREY_COLOR radius: 10 visible: root.state == "pressed" - //border.color: "black" - //border.width: Const.SHADOW_OFFSET } Image { @@ -57,9 +54,6 @@ Item { onLabelChanged: { if(root.label.length>root.maxSize) { - //console.log("root.label: "+root.label) - //console.log("root.label.length: "+root.label.length) - //console.log("root.maxSize: "+root.maxSize) textbox.text = root.label.substring(0,root.maxSize-3)+"..."; } else { textbox.text = root.label;