[Kst] Request for feedback -- readonly combo with completion search

Adam Treat treat at kde.org
Sat Dec 16 00:36:22 CET 2006


Hi all,

I have a proposed solution for bug #104935, but I need some feedback.

Basically, I want to change the vector,scalar,string and matrix selection 
widget's to use a modified combo box.  This combo will behave very much like 
a readwrite combo (which means completion and easy searching) with one big 
difference:  it won't allow actual entry of new items.  When the combo loses 
focus or when return is pressed the combo will perform validation to see if 
the text matches any items in the actual combo list and if it does not, it 
will revert the text to the currently active item.

I like how it behaves, but a few caveats:

1.  I haven't modified the look yet so that there is no visual indicator that 
this is a readonly combo.  It looks just like an editable combo.

2.  Because of inadequacies of Qt's 3.x QComboBox API I've had to do a few 
nasty hacks.  See the commented up source for more info...

So, let me know.  I could possibly add a visual indicator if people feel it is 
necessary, but I'm not exactly sure how I should do it.  Any usability folk 
want to comment?

Cheers,
Adam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: completion_combo.diff
Type: text/x-diff
Size: 39130 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kst/attachments/20061215/9f1a42e7/attachment-0001.bin 


More information about the Kst mailing list