<br><br><div class="gmail_quote">On Sun, Jul 26, 2009 at 10:00 AM, Cristian Oneţ <span dir="ltr">&lt;<a href="mailto:onet.cristian@gmail.com">onet.cristian@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
În data de Duminică 26 Iulie 2009 15:53:56 Alvaro Soliverez a scris:<br>
<div><div></div><div class="h5">&gt; On Sun, Jul 26, 2009 at 8:45 AM, Cristian Oneţ<br>
&lt;<a href="mailto:onet.cristian@gmail.com">onet.cristian@gmail.com</a>&gt;wrote:<br>
&gt; &gt; În data de Sîmbătă 25 Iulie 2009 15:10:03 Alvaro Soliverez a scris:<br>
&gt; &gt; &gt; On Sat, Jul 25, 2009 at 5:38 AM, Cristian Oneţ<br>
&gt; &gt;<br>
&gt; &gt; &lt;<a href="mailto:onet.cristian@gmail.com">onet.cristian@gmail.com</a>&gt;wrote:<br>
&gt; &gt; &gt; &gt; În data de Sîmbătă 25 Iulie 2009 11:15:55 ați scris:<br>
&gt; &gt; &gt; &gt; &gt; În data de Sîmbătă 25 Iulie 2009 10:01:12 ați scris:<br>
&gt; &gt; &gt; &gt; &gt; This is why I think that trying to restore the flag does not work<br>
&gt; &gt; &gt; &gt; &gt; for the transaction form unless we have some call to explicitly<br>
&gt; &gt; &gt; &gt; &gt; enable<br>
&gt; &gt;<br>
&gt; &gt; the<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; updates<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; like we do for the register.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Or we could do the disable/restore stuff only if we really need it,<br>
&gt; &gt;<br>
&gt; &gt; that<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; is,<br>
&gt; &gt; &gt; &gt; when updates are not already disabled when reaching that code.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I can&#39;t remember which class it was right now, but I remember there was<br>
&gt; &gt; &gt; a point in the code where it would call setEnabled for each tab. It was<br>
&gt; &gt; &gt; commented out and added #warning #Port to KDE4.<br>
&gt; &gt;<br>
&gt; &gt; Do you mean the setEnabled call from TabBar::copyTabs? That code has been<br>
&gt; &gt; ported and it does not help with this issue. But I think that the fact<br>
&gt; &gt; that a<br>
&gt; &gt; widget is enabled/disabled and the fact that the updates for the widget<br>
&gt; &gt; are enabled/disabled are unrelated.<br>
&gt; &gt;<br>
&gt; &gt; My mistake. It&#39;s been a while since I have looked at that code.<br>
&gt;<br>
&gt; Perhaps the Qt3 code relied on the fact that the transaction form would be<br>
&gt; enabled anyway even if explicitly disabling the updates, but in Qt4 that<br>
&gt; has to be done by hand.<br>
&gt;<br>
&gt; Is it enough to just enable the updates explicitly or another widget is<br>
&gt; being disabled in addition to the transaction form?<br>
</div></div>It is enough to explicitly enable the updates but I would prefer<br>
disabling/restoring the updates in the transaction form only if that is needed<br>
(when they are not already disabled). That way when the updates on the parent<br>
widget are re-enabled they will also be re-enabled on the transaction form.<br>
<br>
</blockquote></div><br>Can you emit a signal and connect it to a slot that will setUpdatesEnabled to true?<br>That might do it.<br>