[Okular-devel] Dt. 29th July - status

Albert Astals Cid aacid at kde.org
Fri Aug 2 17:23:18 UTC 2013


El Divendres, 2 d'agost de 2013, a les 12:25:11, Jaydeep Solanki va escriure:
> Let's meet on #okular, tomorrow (3rd August) around 7pm european time.

Ok, I'll be there.

Cheers,
  Albert

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



More information about the Okular-devel mailing list