Tissue Saturation Graph not showing on second dive

Dirk Hohndel dirk at hohndel.org
Thu Jan 5 14:06:07 PST 2017


> On Jan 5, 2017, at 1:57 PM, Robert Helling <helling at atdotde.de> wrote:
> 
> Hi,
> 
>> On 05 Jan 2017, at 21:04, Tomaz Canabrava <tcanabrava at kde.org <mailto:tcanabrava at kde.org>> wrote:
>> 
>> Robert, the difference on the preferences for deco mode is what you described - one is for the planner and other is for the display. I tougth id fixed the issue you described to me in your house - and I think I did, but in the end I created another issue. The getter idea seems correct, sorry for the confusion.
> 
> Before I start coding, I have a question (which shows how little C++ I understand): What exactly does 
> 
> 		ProfileWidget2 *view = qobject_cast<ProfileWidget2*>(scene()->views().first());
> 
> (this is line 266 of divetooltipitem.cpp)?
> 
> How much overhead does this have? I hope, it does not create and initialise a whole ProfileWidget2, because all we need to do is 

That's literally just a pointer cast, applied to the first element in a scene. So the overhead shouldn't be dramatic.

/D

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20170105/c9a99809/attachment-0001.html>


More information about the subsurface mailing list