201
201
RKComponentHandle* RKComponentHandle::createComponentHandle (const QString &filename, RKComponentType type, const QString& id, const QString& label) {
202
202
if (type == (int) Standard) {
203
203
RKStandardComponentHandle *ret = new RKStandardComponentHandle (filename, type);
204
new KAction (label, 0, ret, SLOT (activated ()), RKGlobals::componentMap ()->actionCollection (), id);
204
new KAction (label, 0, ret, SLOT (activated ()), RKGlobals::componentMap ()->actionCollection (), id.latin1 ());
207
207
// TODO: create an RKPluginHandle instead!