exercise clearbutton and enabling in TextField

This commit is contained in:
Sebastian Kügler 2013-02-20 00:26:57 +01:00
parent 4e82cc5d3d
commit aa233c1055
2 changed files with 4 additions and 1 deletions

View File

@ -103,13 +103,16 @@ PlasmaComponents.Page {
height: _h height: _h
spacing: _s spacing: _s
PlasmaComponents.RadioButton { PlasmaComponents.RadioButton {
id: radio
text: "RadioButton" text: "RadioButton"
//iconSource: "call-stop" //iconSource: "call-stop"
onCheckedChanged: if (checked) tfield.forceActiveFocus() onCheckedChanged: if (checked) tfield.forceActiveFocus()
} }
PlasmaComponents.TextField { PlasmaComponents.TextField {
id: tfield id: tfield
enabled: radio.checked
text: "input here" text: "input here"
clearButtonShown: true
} }
} }
// PlasmaComponents.TextArea { // PlasmaComponents.TextArea {

View File

@ -59,7 +59,7 @@ Item {
PlasmaComponents.BusyIndicator { PlasmaComponents.BusyIndicator {
z: 1000 z: 1000
visible: applet.length > 0 && applet[0].busy visible: applet && applet.length > 0 && applet[0].busy
running: visible running: visible
anchors.centerIn: parent anchors.centerIn: parent
} }