use Bindings, or set canAccept: false by default and change
dialog.canAccept after something happened.
On 08.03.2014 17:40, Ragnar Kurm wrote:
Hello,
I'm trying to make a dialog where accept action can be disabled or
enabled.
I set canAccept explicitly false, but it still appears as active,
though tapping does not accept.
So visual and practical aspect don't match.
If canAccept is specified dynamically then on subsequent change it
starts to behave coherently.
Is it something I do miss? Or a bug?
Ragnar
Dialog {
canAccept: false
Column {
anchors.fill: parent
DialogHeader {
acceptText: "Save"
cancelText: "Cancel"
title: "Title"
}
TextField {
width: parent.width
label: "Text"
}
}
}
_______________________________________________
SailfishOS.org Devel mailing list
_______________________________________________
SailfishOS.org Devel mailing list