[SailfishDevel] Accept only filled Dialog
Andrey Kozhevnikov
coderusinbox at gmail.com
Sat Oct 4 18:55:42 UTC 2014
You really need validators for text data? Adding complex RegExpValidator
just for handling empty state? Really?
05.10.2014 00:52, sailfishmail пишет:
> I think the validator property will help you; search for "qml using validators" or similar. Or http://qt-project.org/doc/qt-4.8/texthandling.html and the "acceptableInput" property of TextInput.
>
> Andrey Kozhevnikov kirjoitti Sat Oct 04 2014 21:40:48 GMT+0300 (EEST):
>> something like this: http://pastebin.com/Vv0PcrJA
>>
>> 05.10.2014 00:14, Cernunnos Wynand пишет:
>>> Hi,
>>>
>>> I have the following code for a dialog which will only be accepted if it
>>> has been completely filled out: http://pastebin.com/WUpHhxJh
>>>
>>> I find this a bit cumbersome. Does anyone have suggestions or
>>> improvements?
>>>
>>> Cernunnos
>>>
>>>
>>> _______________________________________________
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
>>
More information about the Devel
mailing list