From koffice-devel Sun Mar 28 17:59:21 2010 From: Thomas Zander Date: Sun, 28 Mar 2010 17:59:21 +0000 To: koffice-devel Subject: Re: Spell checking Message-Id: <201003281959.23062.zander () kde ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=126980009019614 On Sunday 28. March 2010 07.33.24 Thorsten Zachmann wrote: > Hello, > > I was trying out spell checking and found some problems I write here about > to get input on how it might get fixed so I can give it a try or if I will > file a bug report. > > 1. Spell checking underlines are drawn even if forPrint in > > virtual void paint(QPainter &painter, const KoViewConverter &converter, > bool forPrint); > > is set to true. This results the printouts and presentations in all apps > besides kword to have the red underlines in printouts. KWord works around > this problem by removing the QTextLayout::additionalFormat before > printing. Any idea on how to not draw the underline in case forPrint is > set. Try to move that code to komain? > 2. A word is only underlined when the next word after the wrong word is > ended. So if I type "hjk as" hjk will not be marked as wrong as long there > is no space behind as. If my memory serves me right this was working with > qt 4.5 and stopped when I updated to 4.6 No idea. Could be a lot of things. You'd need to debug it. Notice that there is a unit test in the spellchecker dir too. Maybe you can check if it covers this usecase. -- Thomas Zander _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel