示例#1
0
/** void QTableView::setShowGrid(bool enable)
 * bind/QTableView.h:16
 */
static int TableView_setShowGrid(lua_State *L) {
  try {
    TableView *self = *((TableView **)dub_checksdata(L, 1, "mimas.TableView"));
    bool enable = dub_checkboolean(L, 2);
    self->setShowGrid(enable);
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "setShowGrid: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "setShowGrid: Unknown exception");
  }
  return dub_error(L);
}