exercise clearbutton and enabling in TextField
This commit is contained in:
parent
4e82cc5d3d
commit
aa233c1055
@ -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 {
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user