El Dimecres, 7 de novembre de 2012, a les 15:06:20, Jan Kalcic va escriure: > 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. > > Question, for such common and standard actions, isn't there a way to > easily get this code? Or I can just take it out from other KDE apps > (i.e. Kate)?
You mean the slot you would connect a given KStandardAction to? That "shared code" does not exist nowadays in kdelibs (i think it'd be a bit hard to share). So no, nowhere to "copy" it from. Cheers, Albert > > What's the way you do this? Is there a best practice? > > Thanks, > Jan > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe > >> << >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
