Issue35: "About the Book"

4 views
Skip to first unread message

Ramiro Algozino

unread,
Feb 9, 2011, 8:45:29 AM2/9/11
to aranduka...@googlegroups.com
I've pushed a new branch for the issue35. I'm trying to do the "About
the Book" view, right now it shows some information but I can't make
it show the book's cover.. :-/ can you check it because I don't know
what else to try.. :-/

I don't know if I can do everything that says the issue but I'm
trying, he! if want to hack it, be my guest.. :-)

Thanks!

--
Ramiro Algozino

Ramiro Algozino

unread,
Feb 9, 2011, 9:05:16 AM2/9/11
to aranduka...@googlegroups.com
2011/2/9 Ramiro Algozino <algo...@gmail.com>:

I forgot, if you want to try it: right-click a book -> About Book

--
Ramiro Algozino

Ramiro Algozino

unread,
Feb 9, 2011, 9:34:31 AM2/9/11
to aranduka...@googlegroups.com
2011/2/9 Ramiro Algozino <algo...@gmail.com>:

(Kind of) Solved the cover problem.. it turns out you need to pass the
complete url even with protocol. "/home/usr/image.jp" won't work,
"file:///home/usr/image" does instead.

I hard coded the protocol indicator file:// to the html code, beacuse
I suppose we are always using local files to display the cover.
--
Ramiro Algozino

Roberto Alsina

unread,
Feb 9, 2011, 9:51:25 AM2/9/11
to aranduka...@googlegroups.com
On 2/9/2011 11:34 AM, Ramiro Algozino wrote:
>> Algozino
>> >
> (Kind of) Solved the cover problem.. it turns out you need to pass the
> complete url even with protocol. "/home/usr/image.jp" won't work,
> "file:///home/usr/image" does instead.
>
> I hard coded the protocol indicatorfile:// to the html code, beacuse

> I suppose we are always using local files to display the cover.
Yes we are. Keep in mind windows users too ;-)

Ramiro Algozino

unread,
Feb 9, 2011, 10:30:50 AM2/9/11
to aranduka...@googlegroups.com
2011/2/9 Roberto Alsina <ral...@netmanagers.com.ar>:

It *should* work on windows too because the protocol indicator is
specified by "<protocol name>://". But if someone wants to try it just
in case..

--
Ramiro Algozino

Ramiro Algozino

unread,
Feb 9, 2011, 10:37:26 AM2/9/11
to aranduka...@googlegroups.com
2011/2/9 Ramiro Algozino <algo...@gmail.com>:

I ment that the two slashes are OS independent.

--
Ramiro Algozino

Roberto Alsina

unread,
Feb 9, 2011, 10:39:50 AM2/9/11
to aranduka...@googlegroups.com
On 2/9/2011 12:37 PM, Ramiro Algozino wrote:
> I ment that the two slashes are OS independent.
Yes, but the path's backslashes need to be converted, see

http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx

There is a QUrl.fromLocalFile() method to do all adequate changes, IIRC.

Ramiro Algozino

unread,
Feb 9, 2011, 12:03:19 PM2/9/11
to aranduka...@googlegroups.com
2011/2/9 Roberto Alsina <ral...@netmanagers.com.ar>:

touché! hehe! OK, I'll check that! thanks!

--
Ramiro Algozino

Ramiro Algozino

unread,
Feb 9, 2011, 12:14:11 PM2/9/11
to aranduka...@googlegroups.com
2011/2/9 Ramiro Algozino <algo...@gmail.com>:

Fixed and Pushed. :-)

If someone can try it on Windows let me now if it works please.

--
Ramiro Algozino

Roberto Alsina

unread,
Feb 9, 2011, 12:19:37 PM2/9/11
to aranduka...@googlegroups.com
On 2/9/2011 2:14 PM, Ramiro Algozino wrote:
> 2011/2/9 Ramiro Algozino<algo...@gmail.com>:
>> 2011/2/9 Roberto Alsina<ral...@netmanagers.com.ar>:
>>> On 2/9/2011 12:37 PM, Ramiro Algozino wrote:
>>>> I ment that the two slashes are OS independent.
>>> Yes, but the path's backslashes need to be converted, see
>>>
>>> http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx
>>>
>>> There is a QUrl.fromLocalFile() method to do all adequate changes, IIRC.
>>>
>> touch�! hehe! OK, I'll check that! thanks!

>>
>> --
>> Ramiro Algozino
>>
> Fixed and Pushed. :-)
>
> If someone can try it on Windows let me now if it works please.

Works perfect!


Ramiro Algozino

unread,
Feb 9, 2011, 12:23:50 PM2/9/11
to aranduka...@googlegroups.com
2011/2/9 Roberto Alsina <ral...@netmanagers.com.ar>:
> On 2/9/2011 2:14 PM, Ramiro Algozino wrote:
>>
>> 2011/2/9 Ramiro Algozino<algo...@gmail.com>:
>>>
>>> 2011/2/9 Roberto Alsina<ral...@netmanagers.com.ar>:
>>>>
>>>> On 2/9/2011 12:37 PM, Ramiro Algozino wrote:
>>>>>
>>>>> I ment that the two slashes are OS independent.
>>>>
>>>> Yes, but the path's backslashes need to be converted, see
>>>>
>>>> http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx
>>>>
>>>> There is a QUrl.fromLocalFile() method to do all adequate changes, IIRC.
>>>>
>>> touché! hehe! OK, I'll check that! thanks!

>>>
>>> --
>>> Ramiro Algozino
>>>
>> Fixed and Pushed. :-)
>>
>> If someone can try it on Windows let me now if it works please.
>
> Works perfect!
>
>
>
>
>

Cool!

--
Ramiro Algozino

Reply all
Reply to author
Forward
0 new messages