Hi, On Wednesday, 2012-11-07, Jan Kalcic wrote: > Hi, > > I have a Qt app which I am little-by-little "moving" to KDE, with this I > mean I am switching from Qt classes to KDE ones where possible. > > With this I am now adding new KStandardAction(s), very quick and easy, > but AFAIU these only provides predefined menu items via XMLGUI > technology, but not the slot implementation code. So for example, if I > want to use the copy KStandardAction, I anyway need to write the source > code for the slot this action is connected to.
Yes, because what "copy" means is very much dependent on what the application does, i.e. what kind of content your application is editing. A file manager will copy a list of file URLs to the clipboard, a text editor would copy some plain text, a web browser might copy plain text and/or HTML, an image editor some pixel data. The classes holding the data will have different API, different variable names, etc. There is just no way to share this in a generic way. Since you are transforming an already existing application, don't you have that slot already and only need to replace the UI? Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
