[Kde-pim] Review Request: Replace hard coded country list of kaddressbook by the l10n resources maintained in systemsettings

Thomas McGuire mcguire at kde.org
Fri May 15 12:50:44 BST 2009



> On 2009-05-15 04:47:55, Thomas McGuire wrote:
> > Hi! It looks like you got that code from kdebase/runtime/kcontrol/locale/countryselectordialog.cpp, right?
> > I don't like code duplication much. Can you add a new function to kdelibs that returns the list of country names and tags, and then make the country selector dialog and kaddressbook use it?
> > 
> > Thanks,
> > Thomas

Heh, I should actually read stuff before I reply, that would have saved me from asking on IRC about where the widget that does the same lives :)


- Thomas


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/700/#review1132
-----------------------------------------------------------


On 2009-05-14 14:32:45, Urs Joss wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/700/
> -----------------------------------------------------------
> 
> (Updated 2009-05-14 14:32:45)
> 
> 
> Review request for KDE PIM.
> 
> 
> Summary
> -------
> 
> Inspired by bug 168410 I adapted the source for the country list used in countryselectordialog.cpp of kcontrol (roughly lines 271 to 290). Thus kaddressbook reads the system wide country names from as found in the entry.desktop files of the l10n subdirectories.
> 
> I did not try to follow up the rationale of implementing a hard-coded list in addresseditwidget.cpp. While it certainly gives kaddressbook developers more freedom in adding countries, it also led to outdated countries. The patch removes the burden of maintaining this list.
> 
> 
> This addresses bug 168410.
>     https://bugs.kde.org/show_bug.cgi?id=168410
> 
> 
> Diffs
> -----
> 
>   trunk/KDE/kdepim/kaddressbook/addresseditwidget.cpp 968034 
> 
> Diff: http://reviewboard.kde.org/r/700/diff
> 
> 
> Testing
> -------
> 
> I have applied the patch to the kaddressbook-4.2.3 in gentoo. I have successfully modified existing addresses (switching countries). I have also added new addresses to existing contacts, and last but not least created new contacts with new addresses.
> 
> 
> Thanks,
> 
> Urs
> 
>

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list