[Kbabel] [PATCH] (#2) Better temporary fix for too wide combo box in SVN/CVS commit (bug #115296)
Nicolas Goutte
nicolasg at snafu.de
Sun Oct 30 14:15:13 CET 2005
The attached patch is for kdesdk/kbabel/catalogmanager
This patch is a better version for fixing the too-wide combo box in the SVN
commit (again CVS commit is not done et, ut is going to be very similar
code).
This new patch still limits the number of characters but by using
KStringHandlerr::csqueeze now (TODO: try to get GUI info about width of combo
box and font info, as QWidget returns such info).
The old messages are now kept in two QStringList objects: one for the long
messages, the other for the squeezed ones.
The "activation" of the QComboBox is now done by numbers, as it is
non-editable.
As for replacing the combo box by a KComboBox, it is superfluous as KComboBox
extensions compared to QComboBox are only for editable combo boxes.
Have a nice day!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combotoowide2.diff
Type: text/x-diff
Size: 4351 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kbabel/attachments/20051030/e3e03e58/combotoowide2.bin
More information about the kbabel
mailing list