GSoC - Customizable print formats

Tomaz Canabrava tcanabrava at kde.org
Wed May 27 10:28:51 PDT 2015


I needs the local dive object as Grantlee::Context is initialized
by QVariantList<Dive> which contains all selected dives information, I have
also checked the existing dive class at "models.h" and the class was
missing many fields that will be needed by the printing module, AFAIK the
class in models.h is currently used in the dive list view only.


>> What you need on the models? I can add them.
>>
>
> All the dive information that will be shown in a print (Notes, Equipment,
> Info, stats, etc)  needs to be added to the models, that's why I created
> the local Dive object which also handles the formatting of the datatypes
> into the view, which also quotes UTF-8 characters to be rendered correctly
> in the Html.
>

Then it's a new model: the Print Model.
Creating models in Qt is a bit painfull but as soon as you get ir right,
it's very easy to.


The classes in models.h are used in many parts of subsurface ( I'll plan to
split them later because of Grace's Work on Android UI )


>
> --
> regards,
>
> Gehad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150527/f0458c7c/attachment.html>


More information about the subsurface mailing list