JavaScript Widget: nativeWidget for LineEdit
Aaron J. Seigo
aseigo at kde.org
Mon Nov 29 21:28:48 CET 2010
On Monday, November 29, 2010, Thomas wrote:
> @input_number.nativeWidget().setCompletedItems(matches, true)
nativeWidget() is not supported, no. the reason for this is to keep the
bindings small (better runtime performance (particularly startup) and easier
to learn) and to ensure we could be satisfied with the general safety of the
bindings (untrusted code, etc.)
> Do you have any suggestions on how to achieve autocompletion for LineEdits?
we'd have to add support to the javascript bindings for this to work.
KCompletionBase (which is where KLineEdit gets this support from) has a
handful of methods that are relevant and potentially useful in these
situations. so, it is possible. would have to wait for 4.7 at this point
though :(
to be clear: are you wanting the UI to show all matching items in a list
beneath the line edit, or are you wanting it to just complete the "best" match
in-line?
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20101129/47bed777/attachment.sig
More information about the Plasma-devel
mailing list