added "install" instruction
[Leditor.git] / src / lqt_bind_QShortcut.cpp
blobb791df669ae552f25cdfe2ef21c5e2e1ea7f15bb
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*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 QWidget * ret = __lua__obj->QShortcut::parentWidget();
11 lqtL_pushudata(L, ret, "QWidget*");
12 return 1;
14 int LuaBinder< QShortcut >::__LuaWrapCall__setContext (lua_State *L) {
15 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 Qt::ShortcutContext arg1 = static_cast<Qt::ShortcutContext>(lqtL_toenum(L, 2, "Qt::ShortcutContext"));
22 __lua__obj->QShortcut::setContext(arg1);
23 return 0;
25 int LuaBinder< QShortcut >::__LuaWrapCall__key (lua_State *L) {
26 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 QKeySequence ret = __lua__obj->QShortcut::key();
33 lqtL_passudata(L, new QKeySequence(ret), "QKeySequence*");
34 return 1;
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());
41 return 1;
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());
49 return 1;
51 int LuaBinder< QShortcut >::__LuaWrapCall__trUtf8 (lua_State *L) {
52 int score[3];
53 const int premium = 11+lua_gettop(L);
54 score[1] = 0;
55 if ((lua_type(L, 1)==LUA_TSTRING)) {
56 score[1] += premium;
57 } else if (false) {
58 score[1] += premium-1; // table: 0x148f280;
59 } else {
60 score[1] -= premium*premium;
62 if ((lua_type(L, 2)==LUA_TSTRING)) {
63 score[1] += premium;
64 } else if (true) {
65 score[1] += premium-1; // table: 0x148ede0;
66 } else {
67 score[1] -= premium*premium;
69 score[2] = 0;
70 if ((lua_type(L, 1)==LUA_TSTRING)) {
71 score[2] += premium;
72 } else if (false) {
73 score[2] += premium-1; // table: 0x1491070;
74 } else {
75 score[2] -= premium*premium;
77 if ((lua_type(L, 2)==LUA_TSTRING)) {
78 score[2] += premium;
79 } else if (false) {
80 score[2] += premium-1; // table: 0x14907a0;
81 } else {
82 score[2] -= premium*premium;
84 if (lua_isnumber(L, 3)) {
85 score[2] += premium;
86 } else if (false) {
87 score[2] += premium-1; // table: 0x1491500;
88 } else {
89 score[2] -= premium*premium;
91 int best = 1;
92 for (int i=1;i<=2;i++) {
93 if (score[best] < score[i]) { best = i; }
95 switch (best) {
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");
100 lua_error(L);
101 return 0;
103 int LuaBinder< QShortcut >::__LuaWrapCall__context (lua_State *L) {
104 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
105 if (__lua__obj==0) {
106 lua_pushstring(L, "trying to reference deleted pointer");
107 lua_error(L);
108 return 0;
110 Qt::ShortcutContext ret = __lua__obj->QShortcut::context();
111 lqtL_pushenum(L, ret, "Qt::ShortcutContext");
112 return 1;
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*");
118 return 1;
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*");
128 return 1;
130 int LuaBinder< QShortcut >::__LuaWrapCall__new (lua_State *L) {
131 int score[4];
132 score[0] = score[1] = score[2] = score[3] = 0;
133 const int premium = 11+lua_gettop(L);
134 score[2] = 0;
135 if (lqtL_testudata(L, 1, "QWidget*")) {
136 score[2] += premium;
137 } else if (false) {
138 score[2] += premium-1; // table: 0x1493f40;
139 } else {
140 score[2] -= premium*premium;
142 score[3] = 0;
143 if (lqtL_testudata(L, 1, "QKeySequence*")) {
144 score[3] += premium;
145 } else if (false) {
146 score[3] += premium-1; // table: 0x14949d0;
147 } else {
148 score[3] -= premium*premium;
150 if (lqtL_testudata(L, 2, "QWidget*")) {
151 score[3] += premium;
152 } else if (false) {
153 score[3] += premium-1; // table: 0x1494460;
154 } else {
155 score[3] -= premium*premium;
157 if ((lua_type(L, 3)==LUA_TSTRING)) {
158 score[3] += premium;
159 } else if (true) {
160 score[3] += premium-1; // table: 0x1494ed0;
161 } else {
162 score[3] -= premium*premium;
164 if ((lua_type(L, 4)==LUA_TSTRING)) {
165 score[3] += premium;
166 } else if (true) {
167 score[3] += premium-1; // table: 0x1495730;
168 } else {
169 score[3] -= premium*premium;
171 if (lqtL_isenum(L, 5, "Qt::ShortcutContext")) {
172 score[3] += premium;
173 } else if (true) {
174 score[3] += premium-1; // table: 0x1495b70;
175 } else {
176 score[3] -= premium*premium;
178 int best = 1;
179 for (int i=1;i<=3;i++) {
180 if (score[best] < score[i]) { best = i; }
182 switch (best) {
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");
187 lua_error(L);
188 return 0;
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());
195 return 1;
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());
203 return 1;
205 int LuaBinder< QShortcut >::__LuaWrapCall__tr (lua_State *L) {
206 int score[3];
207 const int premium = 11+lua_gettop(L);
208 score[1] = 0;
209 if ((lua_type(L, 1)==LUA_TSTRING)) {
210 score[1] += premium;
211 } else if (false) {
212 score[1] += premium-1; // table: 0x148e520;
213 } else {
214 score[1] -= premium*premium;
216 if ((lua_type(L, 2)==LUA_TSTRING)) {
217 score[1] += premium;
218 } else if (true) {
219 score[1] += premium-1; // table: 0x148e280;
220 } else {
221 score[1] -= premium*premium;
223 score[2] = 0;
224 if ((lua_type(L, 1)==LUA_TSTRING)) {
225 score[2] += premium;
226 } else if (false) {
227 score[2] += premium-1; // table: 0x148ff60;
228 } else {
229 score[2] -= premium*premium;
231 if ((lua_type(L, 2)==LUA_TSTRING)) {
232 score[2] += premium;
233 } else if (false) {
234 score[2] += premium-1; // table: 0x1490450;
235 } else {
236 score[2] -= premium*premium;
238 if (lua_isnumber(L, 3)) {
239 score[2] += premium;
240 } else if (false) {
241 score[2] += premium-1; // table: 0x1490800;
242 } else {
243 score[2] -= premium*premium;
245 int best = 1;
246 for (int i=1;i<=2;i++) {
247 if (score[best] < score[i]) { best = i; }
249 switch (best) {
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");
254 lua_error(L);
255 return 0;
257 int LuaBinder< QShortcut >::__LuaWrapCall__delete (lua_State *L) {
258 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
259 if (__lua__obj==0) {
260 lua_pushstring(L, "trying to reference deleted pointer");
261 lua_error(L);
262 return 0;
264 delete __lua__obj;
265 __lua__obj = 0;
266 return 0;
268 int LuaBinder< QShortcut >::__LuaWrapCall__setKey (lua_State *L) {
269 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
270 if (__lua__obj==0) {
271 lua_pushstring(L, "trying to reference deleted pointer");
272 lua_error(L);
273 return 0;
275 const QKeySequence& arg1 = **static_cast<QKeySequence**>(lqtL_checkudata(L, 2, "QKeySequence*"));
276 __lua__obj->QShortcut::setKey(arg1);
277 return 0;
279 int LuaBinder< QShortcut >::__LuaWrapCall__whatsThis (lua_State *L) {
280 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
281 if (__lua__obj==0) {
282 lua_pushstring(L, "trying to reference deleted pointer");
283 lua_error(L);
284 return 0;
286 QString ret = __lua__obj->QShortcut::whatsThis();
287 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
288 return 1;
290 int LuaBinder< QShortcut >::__LuaWrapCall__autoRepeat (lua_State *L) {
291 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
292 if (__lua__obj==0) {
293 lua_pushstring(L, "trying to reference deleted pointer");
294 lua_error(L);
295 return 0;
297 bool ret = __lua__obj->QShortcut::autoRepeat();
298 lua_pushboolean(L, ret);
299 return 1;
301 int LuaBinder< QShortcut >::__LuaWrapCall__id (lua_State *L) {
302 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
303 if (__lua__obj==0) {
304 lua_pushstring(L, "trying to reference deleted pointer");
305 lua_error(L);
306 return 0;
308 int ret = __lua__obj->QShortcut::id();
309 lua_pushinteger(L, ret);
310 return 1;
312 int LuaBinder< QShortcut >::__LuaWrapCall__setWhatsThis (lua_State *L) {
313 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
314 if (__lua__obj==0) {
315 lua_pushstring(L, "trying to reference deleted pointer");
316 lua_error(L);
317 return 0;
319 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
320 __lua__obj->QShortcut::setWhatsThis(arg1);
321 return 0;
323 int LuaBinder< QShortcut >::__LuaWrapCall__isEnabled (lua_State *L) {
324 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
325 if (__lua__obj==0) {
326 lua_pushstring(L, "trying to reference deleted pointer");
327 lua_error(L);
328 return 0;
330 bool ret = __lua__obj->QShortcut::isEnabled();
331 lua_pushboolean(L, ret);
332 return 1;
334 int LuaBinder< QShortcut >::__LuaWrapCall__setEnabled (lua_State *L) {
335 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
336 if (__lua__obj==0) {
337 lua_pushstring(L, "trying to reference deleted pointer");
338 lua_error(L);
339 return 0;
341 bool arg1 = (bool)lua_toboolean(L, 2);
342 __lua__obj->QShortcut::setEnabled(arg1);
343 return 0;
345 int LuaBinder< QShortcut >::__LuaWrapCall__setAutoRepeat (lua_State *L) {
346 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
347 if (__lua__obj==0) {
348 lua_pushstring(L, "trying to reference deleted pointer");
349 lua_error(L);
350 return 0;
352 bool arg1 = (bool)lua_toboolean(L, 2);
353 __lua__obj->QShortcut::setAutoRepeat(arg1);
354 return 0;
356 int LuaBinder< QShortcut >::__LuaWrapCall__metaObject (lua_State *L) {
357 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
358 if (__lua__obj==0) {
359 lua_pushstring(L, "trying to reference deleted pointer");
360 lua_error(L);
361 return 0;
363 const QMetaObject * ret = __lua__obj->QShortcut::metaObject();
364 lqtL_pushudata(L, ret, "QMetaObject*");
365 return 1;
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");
373 lua_remove(L, -2);
374 } else {
375 lua_pushnil(L);
377 lua_insert(L, -2);
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);
382 lua_pop(L, 1);
384 if (!absorbed) {
385 lua_settop(L, oldtop);
386 return this->QShortcut::event(arg1);
388 bool ret = (bool)lua_toboolean(L, -1);
389 lua_settop(L, oldtop);
390 return ret;
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");
398 lua_remove(L, -2);
399 } else {
400 lua_pushnil(L);
402 lua_insert(L, -2);
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);
407 lua_pop(L, 1);
409 if (!absorbed) {
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");
421 lua_remove(L, -2);
422 } else {
423 lua_pushnil(L);
425 lua_insert(L, -2);
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);
431 lua_pop(L, 1);
433 if (!absorbed) {
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);
439 return ret;
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");
447 lua_remove(L, -2);
448 } else {
449 lua_pushnil(L);
451 lua_insert(L, -2);
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);
456 lua_pop(L, 1);
458 if (!absorbed) {
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");
470 lua_remove(L, -2);
471 } else {
472 lua_pushnil(L);
474 lua_insert(L, -2);
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);
479 lua_pop(L, 1);
481 if (!absorbed) {
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");
493 lua_remove(L, -2);
494 } else {
495 lua_pushnil(L);
497 lua_insert(L, -2);
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);
502 lua_pop(L, 1);
504 if (!absorbed) {
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");
516 lua_remove(L, -2);
517 } else {
518 lua_pushnil(L);
520 lua_insert(L, -2);
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);
524 lua_pop(L, 1);
526 if (!absorbed) {
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);
532 return ret;
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");
540 lua_remove(L, -2);
541 } else {
542 lua_pushnil(L);
544 lua_insert(L, -2);
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);
549 lua_pop(L, 1);
551 if (!absorbed) {
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)) {
563 lua_insert(L, -2);
564 lua_pcall(L, 1, 1, 0);
565 } else {
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");
605 lua_newtable(L);
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");
618 } else {
619 lua_pop(L, 1);
621 return 0;