/** void QWidget::setAttribute(int attr, bool enabled) * bind/QWidget.h:22 */ static int TableView_setAttribute(lua_State *L) { try { TableView *self = *((TableView **)dub_checksdata(L, 1, "mimas.TableView")); int attr = dub_checkint(L, 2); bool enabled = dub_checkboolean(L, 3); self->setAttribute((Qt::WidgetAttribute)attr, enabled); return 0; } catch (std::exception &e) { lua_pushfstring(L, "setAttribute: %s", e.what()); } catch (...) { lua_pushfstring(L, "setAttribute: Unknown exception"); } return dub_error(L); }