<div dir="ltr">Let's meet on #okular, tomorrow (3rd August) around <span tabindex="0" class=""><span class="">7pm</span></span> european time.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 11:57 AM, Jaydeep Solanki <span dir="ltr"><<a href="mailto:jaydp17@gmail.com" target="_blank">jaydp17@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Aug 2, 2013 at 2:24 AM, Albert Astals Cid <span dir="ltr"><<a href="mailto:aacid@kde.org" target="_blank">aacid@kde.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">El Dijous, 1 d'agost de 2013, a les 23:04:23, Jaydeep Solanki va escriure:<br>
<div><div>> On Thu, Aug 1, 2013 at 1:49 AM, Albert Astals Cid <<a href="mailto:aacid@kde.org" target="_blank">aacid@kde.org</a>> wrote:<br>
> > El Dimecres, 31 de juliol de 2013, a les 23:32:46, Jaydeep Solanki va<br>
> ><br>
> > escriure:<br>
> > > On Wed, Jul 31, 2013 at 3:13 AM, Albert Astals Cid <<a href="mailto:aacid@kde.org" target="_blank">aacid@kde.org</a>><br>
> ><br>
> > wrote:<br>
> > > > El Dimarts, 30 de juliol de 2013, a les 11:19:45, Jaydeep Solanki va<br>
> > > ><br>
> > > > escriure:<br>
> > > > > On Tue, Jul 30, 2013 at 1:41 AM, Albert Astals Cid <<a href="mailto:aacid@kde.org" target="_blank">aacid@kde.org</a>><br>
> > > ><br>
> > > > wrote:<br>
> > > > > > El Dilluns, 29 de juliol de 2013, a les 23:57:38, Jaydeep Solanki<br>
> ><br>
> > va<br>
> ><br>
> > > > > > escriure:<br>
> > > > > > > Hi,<br>
> > > > > > > As compared to other days, I didn't do much today.<br>
> > > > > > ><br>
> > > > > > > But found some really interesting facts about our image not<br>
> ><br>
> > loading<br>
> ><br>
> > > > > > problem.<br>
> > > > > ><br>
> > > > > > > I know it's not possible but some how the override is not called<br>
> > > ><br>
> > > > instead<br>
> > > ><br>
> > > > > > > the default implementation is called, I found out this by<br>
> > > > > > > placing<br>
> > > > > > > the<br>
> > > > > > > images next to the binary and it works. Images load, which<br>
> > > > > > > indirectly<br>
> > > > > > > indicates that it is loading using default implementation.<br>
> > > > > > ><br>
> > > > > > > I also tried removing the override, and having the images next<br>
> > > > > > > to<br>
> > > > > > > the<br>
> > > > > > > binary, everything works.<br>
> > > > > > ><br>
> > > > > > > If you have any hint, I would really appreciate it, because I'm<br>
> > > ><br>
> > > > really<br>
> > > ><br>
> > > > > > > in<br>
> > > > > > > need of one.<br>
> > > > > ><br>
> > > > > > Have you tried debugging it? At some point in Qt there has to call<br>
> > > > > > loadResource? What about putting a breakpoint in<br>
> > > > > > QTextDocument::loadResource<br>
> > > > > > and see what happens?<br>
> > > > ><br>
> > > > > I tried it in the first place, but it doesn't hit the break point,<br>
> > > > > that's<br>
> > > > > how I concluded loadResource is not called.<br>
> > > > > It hits the breakpoint for other files.<br>
> > > ><br>
> > > > You set the breakpoint in EpubDocument::loadResource or<br>
> > > > QTextDocument::loadResource?<br>
> > ><br>
> > > EpubDocument::loadResource<br>
> ><br>
> > So you say that QTextDocument is somehow loading a file without using<br>
> > loadResource?<br>
><br>
>  yes, without using the EpubDocument::loadResource(), but it uses<br>
> QTextDocument::loadResource(). I can say that because if resources are next<br>
> to binary, it loads.<br>
<br>
</div></div>So you have put a breakpoint in QTextDocument::loadResource and have checked<br>
that QTextDocument::loadResource is called but  EpubDocument::loadResource is<br>
not?<br></blockquote></div></div><div>Yup, that's exactly what happens. <br></div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
  Albert<br>
<div><div><br>
><br>
> > > > Again, do you have a small test case?<br>
> > ><br>
> > > sadly no<br>
> ><br>
> > How big is the test case then?<br>
><br>
> I have a mini version of the epub that shows this behaviour, that's all I<br>
> have.<br>
><br>
> > Cheers,<br>
> ><br>
> >   Albert<br>
> ><br>
> > > > Albert<br>
> > > ><br>
> > > > > > > Also, I have started discovering QTextDocument source. It has a<br>
> > > > > > > class<br>
> > > > > ><br>
> > > > > > named<br>
> > > > > ><br>
> > > > > > > QTextHtmlParser that does all the magic, I saw how it<br>
> > > > > > > categorises<br>
> > > ><br>
> > > > Html<br>
> > > ><br>
> > > > > > > elements, but I'm still not sure how it handles Css. I'll look<br>
> ><br>
> > into<br>
> ><br>
> > > > it<br>
> > > ><br>
> > > > > > > further.<br>
> > > > > ><br>
> > > > > > Cool :-)<br>
> > > > > ><br>
> > > > > > > BTW, do you also contribute to Qt ? I saw you on #qt-labs.<br>
> > > > > ><br>
> > > > > > I have done some small patches here and there, yes.<br>
> > > > > ><br>
> > > > > > Cheers,<br>
> > > > > ><br>
> > > > > >   Albert<br>
> > > > > ><br>
> > > > > > > Cheers,<br>
> > > > > > > Jaydeep<br>
> > > > > ><br>
> > > > > > _______________________________________________<br>
> > > > > > Okular-devel mailing list<br>
> > > > > > <a href="mailto:Okular-devel@kde.org" target="_blank">Okular-devel@kde.org</a><br>
> > > > > > <a href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > Okular-devel mailing list<br>
> > > > <a href="mailto:Okular-devel@kde.org" target="_blank">Okular-devel@kde.org</a><br>
> > > > <a href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
> ><br>
> > _______________________________________________<br>
> > Okular-devel mailing list<br>
> > <a href="mailto:Okular-devel@kde.org" target="_blank">Okular-devel@kde.org</a><br>
> > <a href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
<br>
_______________________________________________<br>
Okular-devel mailing list<br>
<a href="mailto:Okular-devel@kde.org" target="_blank">Okular-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>