[Kmymoney-devel] [kmymoney4] [Bug 312816] Resize ledger No. column

Cristian Oneț onet.cristian at gmail.com
Sun Sep 22 14:46:43 UTC 2013


2013/9/12 Cristian Oneț <onet.cristian at gmail.com>:
> 2013/9/12 allan <agander93 at gmail.com>:
>> https://bugs.kde.org/show_bug.cgi?id=312816
>>
>> --- Comment #5 from allan <agander93 at gmail.com> ---
>> Incidentally, this problem with the edit widgets disappearing/appearing when
>> wanted/unwanted is present in an unpatched git HEAD, and has been there for a
>> long while.  Opening any investment transaction, then resizing the window,
>> will produce it with one or more widgets.
>> From some fresh experiments, if a hide() (or show()) does not do the necessary,
>> then often replacing with setCalculatorButtonVisible(false) and
>> lineedit()->hide() does the trick.  Sadly though, that does not work in every
>> case, and it looks like the only sure-fire fix is the one I came up with,
>> setting the widget height to zero instead of hiding.
>
> Yes I know about this behavior. I will also try to take a look at it
> and maybe find a better solution then delayed calls to hide()/show()
> or other workarounds that seem to do the trick. I would prefer to know
> the cause of this issue and make a proper fix for it.

I had some time to take a look at this and attached a patch with a
proper fix for showing only the needed widgets after a resize. The
problem was caused by the fact that the resize action was making the
hidden edit widgets visible.

Allan could you check if the patch fixes this problem on your setup
also? If it does then we can fix the invest transaction editor related
bugs without touching the current show/hide mechanism.

Regards,
Cristian

>
>>
>> --
>> You are receiving this mail because:
>> You are the assignee for the bug.
>> _______________________________________________
>> KMyMoney-devel mailing list
>> KMyMoney-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/kmymoney-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: investment_editor_widget_visibility_on_resize.patch
Type: application/octet-stream
Size: 2834 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20130922/d9f20704/attachment.obj>


More information about the KMyMoney-devel mailing list