[Kmymoney-devel] restoring QWidget::updatesEnabled property

Alvaro Soliverez asoliverez at gmail.com
Mon Jul 27 03:05:38 CEST 2009


On Sun, Jul 26, 2009 at 11:11 AM, Cristian Oneţ <onet.cristian at gmail.com>wrote:

> În data de Duminică 26 Iulie 2009 16:06:27 Alvaro Soliverez a scris:
> > > It is enough to explicitly enable the updates but I would prefer
> > > disabling/restoring the updates in the transaction form only if that is
> > > needed
> > > (when they are not already disabled). That way when the updates on the
> > > parent
> > > widget are re-enabled they will also be re-enabled on the transaction
> > > form.
> >
> > Can you emit a signal and connect it to a slot that will
> setUpdatesEnabled
> > to true?
> > That might do it.
> What do you say about the attached patch instead of setting up a signal?
>
> Well, it's simpler than setting up a signal.  :))

Does updatesEnabled return false only if it is disabled explicitly or always
when a parent widget has been disabled?
Do you think this will catch all cases?

Regards,
Alvaro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kmymoney-devel/attachments/20090726/77976eb7/attachment.htm 


More information about the KMyMoney-devel mailing list