christian loose's blog

Thursday, April 29, 2004

Power of KDE API

Today Cervisia's changelog and commit dialogs both gained the capability to check the spelling while the user types in the log message.

Although this feature sounds like something that is hard to implement, the KDE API makes it very easy. The change to the changelog dialog was actually just a one-liner since it already used the KTextEdit class. So the addition of the following line was enough to activate the spellchecker:

    m_edit->setCheckSpellingEnabled(true);

That was easy. :-)