Upon a fresh install of KDE..
carpdjih at mailbox.tu-berlin.de
Tue Jun 24 14:08:17 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
On Tuesday 24 June 2003 01:30, Scott Wheeler wrote:
> I was just looking at things and I noticed that in the current
> implementation it does create a new instance of KSpell for every textbox
> that uses it; I'll probably move to some kind of reference counted KSpell
> instance (basically a singleton with a reference count that deletes itself
> when nothing is using it), but I'm not sure if the fix should be in KSpell
I thought about a similar thing, but I'm not sure it's that easy. Maybe you
want to have different languages in different KTextEdits (e.g. when composing
two mails). Also those KSpell objects can be in different states, you can't
simply share them (you probably need to extract the state into a lightweight
object that each KTextEdit aggregates and apply that state to the KSpell
object when the focus changes.
I also imagine that peole using KTextEdit want to have access to the KSpell
object, e.g. to add some custom words to the database.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
More information about the kde-core-devel