kjsembed
Go to the documentation of this file.
26 #include <kjs/object.h>
27 #include <QtCore/QDebug>
29 #include <QtGui/QAction>
30 #include <QtUiTools/QUiLoader>
38 using namespace KJSEmbed;
54 KJS::JSObject *actionObject =
new Action( exec, action );
59 return KJS::throwError(exec, KJS::GeneralError, i18n(
"Action takes 2 args."));
73 if( args.size() == 2 )
75 QObject *
parent = KJSEmbed::extractObject<QObject>(exec, args, 0, 0);
78 QActionGroup *
action =
uiLoader()->createActionGroup(parent, actionName);
81 KJS::JSObject *actionObject =
new ActionGroup( exec, action );
86 return KJS::throwError(exec, KJS::GeneralError, i18n(
"ActionGroup takes 2 args."));
91 return KJS::throwError(exec, KJS::GeneralError, i18n(
"Must supply a valid parent."));
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:24:41 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.