/** bool QObject::setProperty(const char *name, const QVariant &value) * bind/QObject.h:10 */ static int TableView_setProperty(lua_State *L) { try { TableView *self = *((TableView **)dub_checksdata(L, 1, "mimas.TableView")); const char *name = dub_checkstring(L, 2); QVariant value(variantFromLua(L, 3)); lua_pushboolean(L, self->setProperty(name, value)); return 1; } catch (std::exception &e) { lua_pushfstring(L, "setProperty: %s", e.what()); } catch (...) { lua_pushfstring(L, "setProperty: Unknown exception"); } return dub_error(L); }