<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 05 Jan 2017, at 21:04, Tomaz Canabrava <<a href="mailto:tcanabrava@kde.org" class="">tcanabrava@kde.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">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.</div></div></blockquote><div><br class=""></div><div>Before I start coding, I have a question (which shows how little C++ I understand): What exactly does </div><div><br class=""></div><div>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><!--StartFragment--><span style=" color:#c0c0c0;" class="">                </span><span style=" color:#800080;" class="">ProfileWidget2</span><span style=" color:#c0c0c0;" class=""> </span>*view<span style=" color:#c0c0c0;" class=""> </span>=<span style=" color:#c0c0c0;" class=""> </span>qobject_cast<<span style=" color:#800080;" class="">ProfileWidget2</span>*>(scene()->views().first());</pre>
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""><!--EndFragment--></pre><div class="">(this is line 266 of divetooltipitem.cpp)?</div><div class=""><br class=""></div><div class="">How much overhead does this have? I hope, it does not create and initialise a whole ProfileWidget2, because all we need to do is </div><div class=""><br class=""></div><div class="">
<pre style="margin-top: 0px; margin-bottom: 0px;" class=""><!--StartFragment-->view-><span style=" color:#800000;" class="">currentState</span><span style=" color:#c0c0c0;" class=""> </span>==<span style=" color:#c0c0c0;" class=""> </span><span style=" color:#800080;" class="">ProfileWidget2</span>::<span style=" color:#800080;" class="">PLAN</span><!--EndFragment--></pre><div class=""><br class=""></div></div><div class="">And we would do that (unless I somehow store the value somewhere) a lot of times (namely whenever the code differs between deco models).</div></div><br class=""><blockquote type="cite" class=""><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Btw - sync and load are being called because your preferences are saved and restored :)</div></div></blockquote></div><br class=""></div><div class="">Where is the call to sync? I placed a debugging message there and that was never printed.</div><div class=""><br class=""></div><div class="">Best</div><div class="">Robert</div></body></html>