> On Jan 5, 2017, at 1:57 PM, Robert Helling <[email protected]> wrote: > > Hi, > >> On 05 Jan 2017, at 21:04, Tomaz Canabrava <[email protected] >> <mailto:[email protected]>> 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
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
