1 #include "lqt_bind_QShortcut.hpp"
3 int LuaBinder
< QShortcut
>::__LuaWrapCall__parentWidget (lua_State
*L
) {
4 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 QWidget
* ret
= __lua__obj
->QShortcut::parentWidget();
11 lqtL_pushudata(L
, ret
, "QWidget*");
14 int LuaBinder
< QShortcut
>::__LuaWrapCall__setContext (lua_State
*L
) {
15 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
17 lua_pushstring(L
, "trying to reference deleted pointer");
21 Qt::ShortcutContext arg1
= static_cast<Qt::ShortcutContext
>(lqtL_toenum(L
, 2, "Qt::ShortcutContext"));
22 __lua__obj
->QShortcut::setContext(arg1
);
25 int LuaBinder
< QShortcut
>::__LuaWrapCall__key (lua_State
*L
) {
26 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
28 lua_pushstring(L
, "trying to reference deleted pointer");
32 QKeySequence ret
= __lua__obj
->QShortcut::key();
33 lqtL_passudata(L
, new QKeySequence(ret
), "QKeySequence*");
36 int LuaBinder
< QShortcut
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
37 const char * arg1
= lua_tostring(L
, 1);
38 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
39 QString ret
= QShortcut::trUtf8(arg1
, arg2
);
40 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
43 int LuaBinder
< QShortcut
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
44 const char * arg1
= lua_tostring(L
, 1);
45 const char * arg2
= lua_tostring(L
, 2);
46 int arg3
= lua_tointeger(L
, 3);
47 QString ret
= QShortcut::trUtf8(arg1
, arg2
, arg3
);
48 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
51 int LuaBinder
< QShortcut
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
53 const int premium
= 11+lua_gettop(L
);
55 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
58 score
[1] += premium
-1; // table: 0x148f280;
60 score
[1] -= premium
*premium
;
62 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
65 score
[1] += premium
-1; // table: 0x148ede0;
67 score
[1] -= premium
*premium
;
70 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
73 score
[2] += premium
-1; // table: 0x1491070;
75 score
[2] -= premium
*premium
;
77 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
80 score
[2] += premium
-1; // table: 0x14907a0;
82 score
[2] -= premium
*premium
;
84 if (lua_isnumber(L
, 3)) {
87 score
[2] += premium
-1; // table: 0x1491500;
89 score
[2] -= premium
*premium
;
92 for (int i
=1;i
<=2;i
++) {
93 if (score
[best
] < score
[i
]) { best
= i
; }
96 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
97 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
99 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
103 int LuaBinder
< QShortcut
>::__LuaWrapCall__context (lua_State
*L
) {
104 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
106 lua_pushstring(L
, "trying to reference deleted pointer");
110 Qt::ShortcutContext ret
= __lua__obj
->QShortcut::context();
111 lqtL_pushenum(L
, ret
, "Qt::ShortcutContext");
114 int LuaBinder
< QShortcut
>::__LuaWrapCall__new__OverloadedVersion__2 (lua_State
*L
) {
115 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*"));
116 QShortcut
* ret
= new LuaBinder
< QShortcut
>(L
, arg1
);
117 lqtL_passudata(L
, ret
, "QShortcut*");
120 int LuaBinder
< QShortcut
>::__LuaWrapCall__new__OverloadedVersion__3 (lua_State
*L
) {
121 const QKeySequence
& arg1
= **static_cast<QKeySequence
**>(lqtL_checkudata(L
, 1, "QKeySequence*"));
122 QWidget
* arg2
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*"));
123 const char * arg3
= (lua_type(L
, 3)==LUA_TSTRING
)?lua_tostring(L
, 3):static_cast< const char * >(0);
124 const char * arg4
= (lua_type(L
, 4)==LUA_TSTRING
)?lua_tostring(L
, 4):static_cast< const char * >(0);
125 Qt::ShortcutContext arg5
= lqtL_isenum(L
, 5, "Qt::ShortcutContext")?static_cast<Qt::ShortcutContext
>(lqtL_toenum(L
, 5, "Qt::ShortcutContext")):Qt::WindowShortcut
;
126 QShortcut
* ret
= new LuaBinder
< QShortcut
>(L
, arg1
, arg2
, arg3
, arg4
, arg5
);
127 lqtL_passudata(L
, ret
, "QShortcut*");
130 int LuaBinder
< QShortcut
>::__LuaWrapCall__new (lua_State
*L
) {
132 score
[0] = score
[1] = score
[2] = score
[3] = 0;
133 const int premium
= 11+lua_gettop(L
);
135 if (lqtL_testudata(L
, 1, "QWidget*")) {
138 score
[2] += premium
-1; // table: 0x1493f40;
140 score
[2] -= premium
*premium
;
143 if (lqtL_testudata(L
, 1, "QKeySequence*")) {
146 score
[3] += premium
-1; // table: 0x14949d0;
148 score
[3] -= premium
*premium
;
150 if (lqtL_testudata(L
, 2, "QWidget*")) {
153 score
[3] += premium
-1; // table: 0x1494460;
155 score
[3] -= premium
*premium
;
157 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
160 score
[3] += premium
-1; // table: 0x1494ed0;
162 score
[3] -= premium
*premium
;
164 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
167 score
[3] += premium
-1; // table: 0x1495730;
169 score
[3] -= premium
*premium
;
171 if (lqtL_isenum(L
, 5, "Qt::ShortcutContext")) {
174 score
[3] += premium
-1; // table: 0x1495b70;
176 score
[3] -= premium
*premium
;
179 for (int i
=1;i
<=3;i
++) {
180 if (score
[best
] < score
[i
]) { best
= i
; }
183 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L
); break;
184 case 3: return __LuaWrapCall__new__OverloadedVersion__3(L
); break;
186 lua_pushstring(L
, "no overload of function __LuaWrapCall__new matching arguments");
190 int LuaBinder
< QShortcut
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
191 const char * arg1
= lua_tostring(L
, 1);
192 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
193 QString ret
= QShortcut::tr(arg1
, arg2
);
194 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
197 int LuaBinder
< QShortcut
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
198 const char * arg1
= lua_tostring(L
, 1);
199 const char * arg2
= lua_tostring(L
, 2);
200 int arg3
= lua_tointeger(L
, 3);
201 QString ret
= QShortcut::tr(arg1
, arg2
, arg3
);
202 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
205 int LuaBinder
< QShortcut
>::__LuaWrapCall__tr (lua_State
*L
) {
207 const int premium
= 11+lua_gettop(L
);
209 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
212 score
[1] += premium
-1; // table: 0x148e520;
214 score
[1] -= premium
*premium
;
216 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
219 score
[1] += premium
-1; // table: 0x148e280;
221 score
[1] -= premium
*premium
;
224 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
227 score
[2] += premium
-1; // table: 0x148ff60;
229 score
[2] -= premium
*premium
;
231 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
234 score
[2] += premium
-1; // table: 0x1490450;
236 score
[2] -= premium
*premium
;
238 if (lua_isnumber(L
, 3)) {
241 score
[2] += premium
-1; // table: 0x1490800;
243 score
[2] -= premium
*premium
;
246 for (int i
=1;i
<=2;i
++) {
247 if (score
[best
] < score
[i
]) { best
= i
; }
250 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
251 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
253 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
257 int LuaBinder
< QShortcut
>::__LuaWrapCall__delete (lua_State
*L
) {
258 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
260 lua_pushstring(L
, "trying to reference deleted pointer");
268 int LuaBinder
< QShortcut
>::__LuaWrapCall__setKey (lua_State
*L
) {
269 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
271 lua_pushstring(L
, "trying to reference deleted pointer");
275 const QKeySequence
& arg1
= **static_cast<QKeySequence
**>(lqtL_checkudata(L
, 2, "QKeySequence*"));
276 __lua__obj
->QShortcut::setKey(arg1
);
279 int LuaBinder
< QShortcut
>::__LuaWrapCall__whatsThis (lua_State
*L
) {
280 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
282 lua_pushstring(L
, "trying to reference deleted pointer");
286 QString ret
= __lua__obj
->QShortcut::whatsThis();
287 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
290 int LuaBinder
< QShortcut
>::__LuaWrapCall__autoRepeat (lua_State
*L
) {
291 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
293 lua_pushstring(L
, "trying to reference deleted pointer");
297 bool ret
= __lua__obj
->QShortcut::autoRepeat();
298 lua_pushboolean(L
, ret
);
301 int LuaBinder
< QShortcut
>::__LuaWrapCall__id (lua_State
*L
) {
302 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
304 lua_pushstring(L
, "trying to reference deleted pointer");
308 int ret
= __lua__obj
->QShortcut::id();
309 lua_pushinteger(L
, ret
);
312 int LuaBinder
< QShortcut
>::__LuaWrapCall__setWhatsThis (lua_State
*L
) {
313 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
315 lua_pushstring(L
, "trying to reference deleted pointer");
319 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
320 __lua__obj
->QShortcut::setWhatsThis(arg1
);
323 int LuaBinder
< QShortcut
>::__LuaWrapCall__isEnabled (lua_State
*L
) {
324 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
326 lua_pushstring(L
, "trying to reference deleted pointer");
330 bool ret
= __lua__obj
->QShortcut::isEnabled();
331 lua_pushboolean(L
, ret
);
334 int LuaBinder
< QShortcut
>::__LuaWrapCall__setEnabled (lua_State
*L
) {
335 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
337 lua_pushstring(L
, "trying to reference deleted pointer");
341 bool arg1
= (bool)lua_toboolean(L
, 2);
342 __lua__obj
->QShortcut::setEnabled(arg1
);
345 int LuaBinder
< QShortcut
>::__LuaWrapCall__setAutoRepeat (lua_State
*L
) {
346 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
348 lua_pushstring(L
, "trying to reference deleted pointer");
352 bool arg1
= (bool)lua_toboolean(L
, 2);
353 __lua__obj
->QShortcut::setAutoRepeat(arg1
);
356 int LuaBinder
< QShortcut
>::__LuaWrapCall__metaObject (lua_State
*L
) {
357 QShortcut
*& __lua__obj
= *static_cast<QShortcut
**>(lqtL_checkudata(L
, 1, "QShortcut*"));
359 lua_pushstring(L
, "trying to reference deleted pointer");
363 const QMetaObject
* ret
= __lua__obj
->QShortcut::metaObject();
364 lqtL_pushudata(L
, ret
, "QMetaObject*");
367 bool LuaBinder
< QShortcut
>::event (QEvent
* arg1
) {
368 bool absorbed
= false;
369 int oldtop
= lua_gettop(L
);
370 lqtL_pushudata(L
, this, "QShortcut*");
371 if (lua_getmetatable(L
, -1)) {
372 lua_getfield(L
, -1, "event");
378 lqtL_pushudata(L
, arg1
, "QEvent*");
379 if (lua_isfunction(L
, -1-2)) {
380 lua_pcall(L
, 1+1, 2, 0);
381 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
385 lua_settop(L
, oldtop
);
386 return this->QShortcut::event(arg1
);
388 bool ret
= (bool)lua_toboolean(L
, -1);
389 lua_settop(L
, oldtop
);
392 void LuaBinder
< QShortcut
>::connectNotify (const char * arg1
) {
393 bool absorbed
= false;
394 int oldtop
= lua_gettop(L
);
395 lqtL_pushudata(L
, this, "QShortcut*");
396 if (lua_getmetatable(L
, -1)) {
397 lua_getfield(L
, -1, "connectNotify");
403 lua_pushstring(L
, arg1
);
404 if (lua_isfunction(L
, -1-2)) {
405 lua_pcall(L
, 1+1, 2, 0);
406 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
410 lua_settop(L
, oldtop
);
411 this->QObject::connectNotify(arg1
);
413 lua_settop(L
, oldtop
);
415 bool LuaBinder
< QShortcut
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
416 bool absorbed
= false;
417 int oldtop
= lua_gettop(L
);
418 lqtL_pushudata(L
, this, "QShortcut*");
419 if (lua_getmetatable(L
, -1)) {
420 lua_getfield(L
, -1, "eventFilter");
426 lqtL_pushudata(L
, arg1
, "QObject*");
427 lqtL_pushudata(L
, arg2
, "QEvent*");
428 if (lua_isfunction(L
, -2-2)) {
429 lua_pcall(L
, 2+1, 2, 0);
430 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
434 lua_settop(L
, oldtop
);
435 return this->QObject::eventFilter(arg1
, arg2
);
437 bool ret
= (bool)lua_toboolean(L
, -1);
438 lua_settop(L
, oldtop
);
441 void LuaBinder
< QShortcut
>::disconnectNotify (const char * arg1
) {
442 bool absorbed
= false;
443 int oldtop
= lua_gettop(L
);
444 lqtL_pushudata(L
, this, "QShortcut*");
445 if (lua_getmetatable(L
, -1)) {
446 lua_getfield(L
, -1, "disconnectNotify");
452 lua_pushstring(L
, arg1
);
453 if (lua_isfunction(L
, -1-2)) {
454 lua_pcall(L
, 1+1, 2, 0);
455 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
459 lua_settop(L
, oldtop
);
460 this->QObject::disconnectNotify(arg1
);
462 lua_settop(L
, oldtop
);
464 void LuaBinder
< QShortcut
>::childEvent (QChildEvent
* arg1
) {
465 bool absorbed
= false;
466 int oldtop
= lua_gettop(L
);
467 lqtL_pushudata(L
, this, "QShortcut*");
468 if (lua_getmetatable(L
, -1)) {
469 lua_getfield(L
, -1, "childEvent");
475 lqtL_pushudata(L
, arg1
, "QChildEvent*");
476 if (lua_isfunction(L
, -1-2)) {
477 lua_pcall(L
, 1+1, 2, 0);
478 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
482 lua_settop(L
, oldtop
);
483 this->QObject::childEvent(arg1
);
485 lua_settop(L
, oldtop
);
487 void LuaBinder
< QShortcut
>::timerEvent (QTimerEvent
* arg1
) {
488 bool absorbed
= false;
489 int oldtop
= lua_gettop(L
);
490 lqtL_pushudata(L
, this, "QShortcut*");
491 if (lua_getmetatable(L
, -1)) {
492 lua_getfield(L
, -1, "timerEvent");
498 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
499 if (lua_isfunction(L
, -1-2)) {
500 lua_pcall(L
, 1+1, 2, 0);
501 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
505 lua_settop(L
, oldtop
);
506 this->QObject::timerEvent(arg1
);
508 lua_settop(L
, oldtop
);
510 const QMetaObject
* LuaBinder
< QShortcut
>::metaObject () const {
511 bool absorbed
= false;
512 int oldtop
= lua_gettop(L
);
513 lqtL_pushudata(L
, this, "QShortcut*");
514 if (lua_getmetatable(L
, -1)) {
515 lua_getfield(L
, -1, "metaObject");
521 if (lua_isfunction(L
, -0-2)) {
522 lua_pcall(L
, 0+1, 2, 0);
523 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
527 lua_settop(L
, oldtop
);
528 return this->QShortcut::metaObject();
530 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
531 lua_settop(L
, oldtop
);
534 void LuaBinder
< QShortcut
>::customEvent (QEvent
* arg1
) {
535 bool absorbed
= false;
536 int oldtop
= lua_gettop(L
);
537 lqtL_pushudata(L
, this, "QShortcut*");
538 if (lua_getmetatable(L
, -1)) {
539 lua_getfield(L
, -1, "customEvent");
545 lqtL_pushudata(L
, arg1
, "QEvent*");
546 if (lua_isfunction(L
, -1-2)) {
547 lua_pcall(L
, 1+1, 2, 0);
548 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
552 lua_settop(L
, oldtop
);
553 this->QObject::customEvent(arg1
);
555 lua_settop(L
, oldtop
);
557 LuaBinder
< QShortcut
>:: ~LuaBinder
< QShortcut
> () {
558 int oldtop
= lua_gettop(L
);
559 lqtL_pushudata(L
, this, "QShortcut*");
560 lua_getfield(L
, -1, "~QShortcut");
562 if (lua_isfunction(L
, -1)) {
564 lua_pcall(L
, 1, 1, 0);
567 lua_settop(L
, oldtop
);
569 int luaopen_QShortcut (lua_State
*L
) {
570 if (luaL_newmetatable(L
, "QShortcut*")) {
571 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__parentWidget
);
572 lua_setfield(L
, -2, "parentWidget");
573 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__setContext
);
574 lua_setfield(L
, -2, "setContext");
575 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__key
);
576 lua_setfield(L
, -2, "key");
577 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__trUtf8
);
578 lua_setfield(L
, -2, "trUtf8");
579 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__context
);
580 lua_setfield(L
, -2, "context");
581 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__new
);
582 lua_setfield(L
, -2, "new");
583 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__tr
);
584 lua_setfield(L
, -2, "tr");
585 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__delete
);
586 lua_setfield(L
, -2, "delete");
587 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__setKey
);
588 lua_setfield(L
, -2, "setKey");
589 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__whatsThis
);
590 lua_setfield(L
, -2, "whatsThis");
591 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__autoRepeat
);
592 lua_setfield(L
, -2, "autoRepeat");
593 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__id
);
594 lua_setfield(L
, -2, "id");
595 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__setWhatsThis
);
596 lua_setfield(L
, -2, "setWhatsThis");
597 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__isEnabled
);
598 lua_setfield(L
, -2, "isEnabled");
599 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__setEnabled
);
600 lua_setfield(L
, -2, "setEnabled");
601 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__setAutoRepeat
);
602 lua_setfield(L
, -2, "setAutoRepeat");
603 lua_pushcfunction(L
, LuaBinder
< QShortcut
>::__LuaWrapCall__metaObject
);
604 lua_setfield(L
, -2, "metaObject");
606 lua_pushboolean(L
, 1);
607 lua_setfield(L
, -2, "QObject*");
608 lua_setfield(L
, -2, "__base");
609 lua_pushcfunction(L
, lqtL_newindex
);
610 lua_setfield(L
, -2, "__newindex");
611 lua_pushcfunction(L
, lqtL_index
);
612 lua_setfield(L
, -2, "__index");
613 lua_pushcfunction(L
, lqtL_gc
);
614 lua_setfield(L
, -2, "__gc");
615 lua_pushstring(L
, "QShortcut");
616 lua_setfield(L
, -2, "__qtype");
617 lua_setglobal(L
, "QShortcut");