KApplication::cut()....

Benjamin Meyer ben at meyerhome.net
Mon Sep 26 12:50:24 BST 2005


On Saturday 24 September 2005 3:34 pm, Benjamin Meyer wrote:
> On Friday 23 September 2005 1:42 pm, David Faure wrote:
> > On Friday 23 September 2005 19:08, Adam Treat wrote:
> > > Speaking as one of the few who actually use these slots... I'd rather
> > > they were in a KStandardSlots class too.  No, not because I would use
> > > them in some app that wouldn't have a mainwindow, but because I like
> > > the slots as is, not some stupid
> > > 'automaticallyCreateSomeKActionsForMePlease' methods
> >
> > Why not KActions? You don't connect copy/cut/paste to some actions?
>
> Good idea, I'll take a look at it and see if it will work.
>
> > > and I don't think we should polute the KMainWindow namespace.
> >
> > Right.

Ok, attached is a new patch.  Rather then going into KMainWindow or making a 
new slotsClass, I have added several new functions to kstdaction such as:

KAction *cut(KActionCollection* parent);

These create a AutomaticAction which is a (kstdaction private) subclass of 
KAction that have the invokeMethod call.

Please RFC

-Benjamin Meyer

-- 
aka icefox
Public Key: http://www.icefox.net/public_key.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: editaction.diff
Type: text/x-diff
Size: 9809 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050926/79ab0f73/attachment.diff>
-------------- 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/20050926/79ab0f73/attachment.sig>


More information about the kde-core-devel mailing list