Allow to add a ActionButton in KPageDialog

Kevin Ottens ervin at kde.org
Fri Jul 4 11:26:00 UTC 2014


On Friday 04 July 2014 09:17:04 laurent Montel wrote:
> Le vendredi 4 juillet 2014 08:13:58 Kevin Ottens a écrit :
> > On Thursday 03 July 2014 19:50:35 laurent Montel wrote:
> > > Hi,
> > > During kdepim porting I saw that it was not possible to add a
> > > ActionButton
> > > as QButtonBox is protected.
> > > => we can do it if we create a derived class.
> > > But it’s not a very easy method for just add a button.
> > > 
> > > I would like to add a new method to do it.
> > > I created a patch for it.
> > > 
> > > What do you think about it ?
> > > 
> > > (Example when we need to add a ActionButton, it’s when we have a old
> > > "User1" button).
> > 
> > Looks OK to me. Will it come with an automated test? We should get serious
> > about that in our reviews as well, and I know you've the necessary
> > testing-fu to get this simple case properly tested. ;-)
> 
> Yes indeed you’re right.
> I create a autotest there was not an autotest for it.
> 
> It doesn’t look at all kpagedialog class but look at code that I added (and
> initialize state).

Sure, to be expected. Adding tests just for the new code is fine.

Looks good to me.

Regards.
-- 
Kévin Ottens, http://ervin.ipsquad.net

KDAB - proud supporter of KDE, http://www.kdab.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140704/56f9ea54/attachment.sig>


More information about the Kde-frameworks-devel mailing list