KSeparatorAction

Olivier Goffart ogoffart at kde.org
Fri Dec 29 09:12:40 GMT 2006


Le vendredi 29 décembre 2006 09:49, Aaron J. Seigo a écrit :
> On Friday 29 December 2006 0:25, Simon Hausmann wrote:
> > 	QAction *a = new QAction(); // uh-oh, the old code had no parent
> > 	a->setSeparator(true);
> >         mFilterMenuActions.append(a);
>
> looks perfect. let's turf KSeparatorAction =)

we could also have a static method somewhere (in KAction ?) to create this 
separator.

mFilterMenuActions.append( KAction::createSeparator( parent )  );
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20061229/eb2893e3/attachment.sig>


More information about the kde-core-devel mailing list