[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: searching in khtml
From:       Lars Knoll <Lars.Knoll () mpi-hd ! mpg ! de>
Date:       2000-02-06 8:45:37
[Download RAW message or body]

On Sat, 5 Feb 2000, Daniel Naber wrote:

> Hi,
> 
> i guess this is the right place to ask about the KHTMLWidget, isn't
> it?
> 
> The latest KMail is already using KHTML and I wanted to implement
> searching ("Find in this mail"). I did this test and it seems
> searching is broken in KHTML:
> 
>   mViewer->begin();
>   mViewer->write("<html><body><p>paragraph one</p></body></html>");
>   mViewer->end();
> 
> Using this code leads to an endless loop:
> 
>   mViewer->findTextBegin();
>   QRegExp re = QRegExp("test");
>   mViewer->findTextNext(re);
> 
> I looked at the code and it seems like it cannot work. First, it just
> doesn't leave the while(1) loop at all (it seems). Second, the
> comparison/regex is inside an if statement that never gets executed.
> It is checked if id is ID_TEXT, but it's always ID_BODY.
> 
> Will this be fixed in the near future? I'm willing to help you but I
> cannot fix that alone.

That one shouldn't be hard to fix, but I'm working on the branch
currently, and not doing changes in HEAD at the moment. I'll fix it, but
it'll take me another 2 (or 3) weeks until I merge the branch back into
HEAD. So I hope you can wait that long.

Cheers,
Lars

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic