[Okular-devel] Dt. 29th July - status
Jaydeep Solanki
jaydp17 at gmail.com
Thu Aug 1 17:34:23 UTC 2013
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.
>
> > > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130801/af244418/attachment.html>
More information about the Okular-devel
mailing list