[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Composed widget
From:       Thomas Baumgart <ipwizard () users ! sourceforge ! net>
Date:       2006-01-29 15:49:27
Message-ID: 200601291649.28056 () net-bembel ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi all,

within our KDE application (KMyMoney) we have a special widget 
(KMyMoneyEdit) that is composed of a KLineEdit and KPushButton widget. 
They are arranged as follows:

 +-HBox-------------+
 |+-KLEdit---++-PB-+|
 ||          ||    ||
 |+----------++----+|
 +------------------+

Currently, we have the KMyMoneyEdit widget being a derivative of QHBox and 
create the KLineEdit and KPushButton within the constructor. This has the 
disadvantage, that the interface of our widget is not based on KLineEdit 
but rather on QHBox. It would make much more sense, that KMyMoneyEdit has 
the same interface as KLineEdit.

Is there an easy way to derive KMyMoneyEdit from KLineEdit with the above 
mentioned layout? How would that be coded? 

Thanks in advance for any ideas you have.

-- 

Regards

Thomas Baumgart

thb@net-bembel.de               Check the KMyMoney open source
http://www.net-bembel.de/       project at http://kmymoney2.sf.net/

public key available under thb@net-bembel.de  at  http://www.keyserver.net
GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
"I'd like to buy Windows." "Are you crazy?" "Is this part of the licence
agreement?" "Not really, but it might support the usage ..."
-------------------------------------------------------------

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic