On Sun, 22 Sep 2013 17:46:43 +0300 Cristian Oneț <onet.crist...@gmail.com> wrote:
> 2013/9/12 Cristian Oneț <onet.crist...@gmail.com>: > > 2013/9/12 allan <agande...@gmail.com>: > >> https://bugs.kde.org/show_bug.cgi?id=312816 > >> > >> --- Comment #5 from allan <agande...@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 Ok, so will do. Apply your patch with my column resizing in place, and then revert to the original show()( and hide() arrangement? Allan _______________________________________________ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde.org/mailman/listinfo/kmymoney-devel