Making KTimeZoneWidget not hog the .ui file

Albert Astals Cid aacid at kde.org
Fri Jan 18 20:07:14 GMT 2008


Hi, when someone uses KTimeZoneWidget on designer and saves the .ui file, all 
the City items are written back to the file, that has two problems, first it 
makes the .ui file HUGE, but second and more important makes the translators 
go mad because something like 800 new strings appear.

I'm attaching a patch that fixes the problem, i don't like it much though 
because it most probably leaks memory and because it does not show the items.

What would be cool if one could instruct designer to show the items but not to 
save them into the ui file.

Comments? Should i commit the patch? Is it possible to isntruct designer to be 
smarter?

Albert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ktimewidget.patch
Type: text/x-diff
Size: 657 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080118/836381d1/attachment.patch>


More information about the kde-core-devel mailing list