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
spacing: _s
PlasmaComponents.RadioButton {
id: radio
text: "RadioButton"
//iconSource: "call-stop"
onCheckedChanged: if (checked) tfield.forceActiveFocus()
}
PlasmaComponents.TextField {
id: tfield
enabled: radio.checked
text: "input here"
clearButtonShown: true
}
}
// PlasmaComponents.TextArea {

View File

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