Making KComboBox a bit bigger if it's editable

Albert Astals Cid aacid at kde.org
Thu Jun 12 23:02:50 BST 2008


Long Story:
 * You have an KSelectAction that when plugged in a toolbar creates a 
KComboBox that has a KLineEdit.
 * KLineEdit has that ¿cool? clear button, KLineEdit size hinting does not 
take it into account because when typing text does not go underneath the 
clear button

But when using an editable KComboBox with a long enough text it will happen 
that the text goes underneath the clear button.

The attach solves the problem in a not so elegant way, but i could not think 
of a better one, suggestions welcome.

Albert

P.S: This fixes http://bugs.kde.org/show_bug.cgi?id=163918
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kcomboboxeditable.patch
Type: text/x-diff
Size: 2228 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080613/1c78236b/attachment.patch>


More information about the kde-core-devel mailing list