[PATCH] Support for multiple languages in KDictSpellingHighlighter

Ingo Klöcker kloecker at kde.org
Sat Oct 25 12:46:33 BST 2003


Hi,

it seems everyone is okay with the changes. Good. I have another change 
for KSpellConfig::fillDicts.

On Sunday 19 October 2003 23:23, Ingo Klöcker wrote:
> ksconfig.diff:
> KSpellConfig::fillDicts( QComboBox *box ) fills a combo box with the
> available dictionaries. But it doesn't set the currently used
> dictionary as current item of the combo box. This patch fixes this
> bug. It's a bug because there is no other way to set the correct
> current item because the user of KSpellConfig only knows about the
> human readable dictionary names but not about the internal dictionary
> names. Without this fix fillDicts is completely useless.

On top of this the attached patch makes fillDicts not only fill a combo 
box with the human readable, translated dictionary names, but, 
optionally, it also fills a given QStringList with the internal 
dictionary names. This is necessary for storing the dictionary the user 
selected in a config file and to set it later again with setDictionary.

Regards,
Ingo

> P.S.: If the signature on this message is broken then it's most
> likely mailmans fault.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksconfig.diff
Type: text/x-diff
Size: 2250 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031025/1f0986d8/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031025/1f0986d8/attachment.sig>


More information about the kde-core-devel mailing list