Пример #1
0
static int
qtuiloader_createAction(lua_State *L)
{
  QUiLoader *loader = luaQ_checkqobject<QUiLoader>(L, 1);
  QObject *parent = luaQ_optqobject<QObject>(L, 2, 0);
  QString name = luaQ_optqvariant<QString>(L, 3, QString());
  luaQ_pushqt(L, loader->createAction(parent, name), !parent);
  return 1;
}