11 #include <QMetaMethod>
13 #include "lua-intf/LuaIntf/LuaIntf.h"
34 bool connect(
int signalId, LuaIntf::LuaRef slot);
43 void pushArg(LuaIntf::LuaState s,
int const type,
void const* arg);
55 static std::string
objectName(QObject*
object);
69 static QObject*
findChild(QObject*
object, std::string name);
82 int qt_metacall(QMetaObject::Call c,
int id,
void **a);
bool connect(int signalId, LuaIntf::LuaRef slot)
Connect Qt slot to Lua function.
std::string objectName()
Get object name.
QObject wrapper for Lua Allow connecting Qt signals with Lua functions.
bool valid()
Return object validity.
LuaIntf::LuaRef _slotFunction
void pushArg(LuaIntf::LuaState s, int const type, void const *arg)
Add signal parameter.
LuaQObject(QObject *object)
Create QObject wrapper.
QObject * findChild(std::string name)
Find children by name.
int qt_metacall(QMetaObject::Call c, int id, void **a)
Internal Qt function This function is called when a slot of this object is called. It gets the arguments and call the Lua function.