static int l_add_rows(lua_State *l) { UI::Table *t = LuaObject<UI::Table>::CheckFromLua(1); luaL_checktype(l, 2, LUA_TTABLE); lua_pushnil(l); while (lua_next(l, 2)) { _add_row(t, l, -1); lua_pop(l, 1); } lua_pushvalue(l, 1); return 1; }
static int l_add_row(lua_State *l) { UI::Table *t = LuaObject<UI::Table>::CheckFromLua(1); _add_row(t, l, 2); lua_pushvalue(l, 1); return 1; }
void tablewidget::addRow( QTableWidget * table,const list_t& l,const QFont& font ) { _add_row( table,l,font ) ; }