/** void QWidget::globalMove(float x, float y) * bind/QWidget.h:79 */ static int LineEdit_globalMove(lua_State *L) { try { LineEdit *self = *((LineEdit **)dub_checksdata(L, 1, "mimas.LineEdit")); float x = dub_checknumber(L, 2); float y = dub_checknumber(L, 3); self->move( self->mapToParent( self->mapFromGlobal(QPoint(x, y)) ) ); return 0; } catch (std::exception &e) { lua_pushfstring(L, "globalMove: %s", e.what()); } catch (...) { lua_pushfstring(L, "globalMove: Unknown exception"); } return dub_error(L); }