[Kmymoney-devel] transaction form problems

Alvaro Soliverez asoliverez at gmail.com
Tue Sep 22 17:07:55 CEST 2009


On Mon, Sep 21, 2009 at 5:00 PM, Cristian Oneţ <onet.cristian at gmail.com>wrote:

> Hi,
>
> The attached screenshot represents a transaction form in which a
> transaction
> is being edited and the attributes of the transaction have changed from the
> original one (for example the original transaction was a withdrawal and
> transfer has been selected in the editor).
> From the code I can tell that the editor widgets are dropped on top of the,
> let's call them, "transaction displaying widgets". As you can see in Qt4
> this
> has the effect that the parent widgets are also visible thus generating a
> widget overlapping effect. I have tried using both autoFillBackground() and
> Qt::WA_OpaquePaintArea on the edit widgets as described at
> http://doc.trolltech.com/4.5/qwidget.html#transparency-and-double-buffering
> without any success (the parent widget is still visible).
> From what I can tell from the warning at this function
> http://doc.trolltech.com/4.5/qwidget.html#setParent the cleanest way would
> be
> the usage of a QStackedWidget (to hold the "transaction displaying widgets"
> and the editor widgets). But this will be a bit difficult because of the
> way the
> code is written now (or maybe I don't have the big picture :) ) so before I
> start I must ask are there any other ideas for how to do this?
>
>
I haven't seen that code in some time. Is it possible to just set them as
hidden when the transaction does not match?

IIRC, the widgets are copied from tab to tab, right?
What if we kept the same set of widgets, and called reparent to change them
to the active tab? Would that work?

Also, I think we have a usability problem here. The tabs are actually used
for a function that could be performed by a radio button (selecting the type
of transaction)

Just my 2 cents.

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


More information about the KMyMoney-devel mailing list