Exemplo n.º 1
0
/** void QWidget::setToolTip(const QString &text)
 * bind/QWidget.h:39
 */
static int TableView_setToolTip(lua_State *L) {
  try {
    TableView *self = *((TableView **)dub_checksdata(L, 1, "mimas.TableView"));
    size_t text_sz_;
    const char *text = dub_checklstring(L, 2, &text_sz_);
    
    self->setToolTip(QString::fromUtf8(text, text_sz_));
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "setToolTip: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "setToolTip: Unknown exception");
  }
  return dub_error(L);
}