<div dir="ltr"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span></span><div><br>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 "<span style="font-size:12.8000001907349px">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.<br><br></span></div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><div><br></div></div></div><div>What you need on the models? I can add them.<br></div></div></div></div></blockquote></div></div><div><br>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.</div></div></div></div></blockquote><div><br></div><div>Then it's a new model: the Print Model. <br></div><div>Creating models in Qt is a bit painfull but as soon as you get ir right, it's very easy to.<br></div><div><br></div><div><br></div><div>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 )<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">regards,</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div dir="ltr"><div>Gehad</div></div></div></blockquote></div></div>
</font></span></div></div>
</blockquote></div><br></div></div>