Initial commit
[Leditor.git] / src / lqt_bind_QShortcut.cpp
blob5806b08f011c43f0eb90a7f20e6a20278a556ba4
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[2];
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: 0x10146d0;
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: 0x1014230;
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: 0x10164c0;
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: 0x1015bf0;
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: 0x1016950;
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 return -1;
101 int LuaBinder< QShortcut >::__LuaWrapCall__context (lua_State *L) {
102 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
103 if (__lua__obj==0) {
104 lua_pushstring(L, "trying to reference deleted pointer");
105 lua_error(L);
106 return 0;
108 Qt::ShortcutContext ret = __lua__obj->QShortcut::context();
109 lqtL_pushenum(L, ret, "Qt::ShortcutContext");
110 return 1;
112 int LuaBinder< QShortcut >::__LuaWrapCall__new__OverloadedVersion__2 (lua_State *L) {
113 QWidget * arg1 = *static_cast<QWidget**>(lqtL_checkudata(L, 1, "QWidget*"));
114 QShortcut * ret = new LuaBinder< QShortcut >(L, arg1);
115 lqtL_pushudata(L, ret, "QShortcut*");
116 return 1;
118 int LuaBinder< QShortcut >::__LuaWrapCall__new__OverloadedVersion__3 (lua_State *L) {
119 const QKeySequence& arg1 = **static_cast<QKeySequence**>(lqtL_checkudata(L, 1, "QKeySequence*"));
120 QWidget * arg2 = *static_cast<QWidget**>(lqtL_checkudata(L, 2, "QWidget*"));
121 const char * arg3 = (lua_type(L, 3)==LUA_TSTRING)?lua_tostring(L, 3):static_cast< const char * >(0);
122 const char * arg4 = (lua_type(L, 4)==LUA_TSTRING)?lua_tostring(L, 4):static_cast< const char * >(0);
123 Qt::ShortcutContext arg5 = lqtL_isenum(L, 5, "Qt::ShortcutContext")?static_cast<Qt::ShortcutContext>(lqtL_toenum(L, 5, "Qt::ShortcutContext")):Qt::WindowShortcut;
124 QShortcut * ret = new LuaBinder< QShortcut >(L, arg1, arg2, arg3, arg4, arg5);
125 lqtL_pushudata(L, ret, "QShortcut*");
126 return 1;
128 int LuaBinder< QShortcut >::__LuaWrapCall__new (lua_State *L) {
129 int score[4];
130 const int premium = 11+lua_gettop(L);
131 score[2] = 0;
132 if (lqtL_testudata(L, 1, "QWidget*")) {
133 score[2] += premium;
134 } else if (false) {
135 score[2] += premium-1; // table: 0x1019390;
136 } else {
137 score[2] -= premium*premium;
139 score[3] = 0;
140 if (lqtL_testudata(L, 1, "QKeySequence*")) {
141 score[3] += premium;
142 } else if (false) {
143 score[3] += premium-1; // table: 0x1019e20;
144 } else {
145 score[3] -= premium*premium;
147 if (lqtL_testudata(L, 2, "QWidget*")) {
148 score[3] += premium;
149 } else if (false) {
150 score[3] += premium-1; // table: 0x10198b0;
151 } else {
152 score[3] -= premium*premium;
154 if ((lua_type(L, 3)==LUA_TSTRING)) {
155 score[3] += premium;
156 } else if (true) {
157 score[3] += premium-1; // table: 0x101a320;
158 } else {
159 score[3] -= premium*premium;
161 if ((lua_type(L, 4)==LUA_TSTRING)) {
162 score[3] += premium;
163 } else if (true) {
164 score[3] += premium-1; // table: 0x101abe0;
165 } else {
166 score[3] -= premium*premium;
168 if (lqtL_isenum(L, 5, "Qt::ShortcutContext")) {
169 score[3] += premium;
170 } else if (true) {
171 score[3] += premium-1; // table: 0x101b020;
172 } else {
173 score[3] -= premium*premium;
175 int best = 2;
176 for (int i=2;i<=3;i++) {
177 if (score[best] < score[i]) { best = i; }
179 switch (best) {
180 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L); break;
181 case 3: return __LuaWrapCall__new__OverloadedVersion__3(L); break;
183 return 0;
185 int LuaBinder< QShortcut >::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State *L) {
186 const char * arg1 = lua_tostring(L, 1);
187 const char * arg2 = (lua_type(L, 2)==LUA_TSTRING)?lua_tostring(L, 2):static_cast< const char * >(0);
188 QString ret = QShortcut::tr(arg1, arg2);
189 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
190 return 1;
192 int LuaBinder< QShortcut >::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State *L) {
193 const char * arg1 = lua_tostring(L, 1);
194 const char * arg2 = lua_tostring(L, 2);
195 int arg3 = lua_tointeger(L, 3);
196 QString ret = QShortcut::tr(arg1, arg2, arg3);
197 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
198 return 1;
200 int LuaBinder< QShortcut >::__LuaWrapCall__tr (lua_State *L) {
201 int score[2];
202 const int premium = 11+lua_gettop(L);
203 score[1] = 0;
204 if ((lua_type(L, 1)==LUA_TSTRING)) {
205 score[1] += premium;
206 } else if (false) {
207 score[1] += premium-1; // table: 0x1013970;
208 } else {
209 score[1] -= premium*premium;
211 if ((lua_type(L, 2)==LUA_TSTRING)) {
212 score[1] += premium;
213 } else if (true) {
214 score[1] += premium-1; // table: 0x10136d0;
215 } else {
216 score[1] -= premium*premium;
218 score[2] = 0;
219 if ((lua_type(L, 1)==LUA_TSTRING)) {
220 score[2] += premium;
221 } else if (false) {
222 score[2] += premium-1; // table: 0x10153b0;
223 } else {
224 score[2] -= premium*premium;
226 if ((lua_type(L, 2)==LUA_TSTRING)) {
227 score[2] += premium;
228 } else if (false) {
229 score[2] += premium-1; // table: 0x10158a0;
230 } else {
231 score[2] -= premium*premium;
233 if (lua_isnumber(L, 3)) {
234 score[2] += premium;
235 } else if (false) {
236 score[2] += premium-1; // table: 0x1015c50;
237 } else {
238 score[2] -= premium*premium;
240 int best = 1;
241 for (int i=1;i<=2;i++) {
242 if (score[best] < score[i]) { best = i; }
244 switch (best) {
245 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L); break;
246 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L); break;
248 return -1;
250 int LuaBinder< QShortcut >::__LuaWrapCall__delete (lua_State *L) {
251 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
252 if (__lua__obj==0) {
253 lua_pushstring(L, "trying to reference deleted pointer");
254 lua_error(L);
255 return 0;
257 delete __lua__obj;
258 __lua__obj = 0;
259 return 0;
261 int LuaBinder< QShortcut >::__LuaWrapCall__setKey (lua_State *L) {
262 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
263 if (__lua__obj==0) {
264 lua_pushstring(L, "trying to reference deleted pointer");
265 lua_error(L);
266 return 0;
268 const QKeySequence& arg1 = **static_cast<QKeySequence**>(lqtL_checkudata(L, 2, "QKeySequence*"));
269 __lua__obj->QShortcut::setKey(arg1);
270 return 0;
272 int LuaBinder< QShortcut >::__LuaWrapCall__whatsThis (lua_State *L) {
273 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
274 if (__lua__obj==0) {
275 lua_pushstring(L, "trying to reference deleted pointer");
276 lua_error(L);
277 return 0;
279 QString ret = __lua__obj->QShortcut::whatsThis();
280 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
281 return 1;
283 int LuaBinder< QShortcut >::__LuaWrapCall__autoRepeat (lua_State *L) {
284 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
285 if (__lua__obj==0) {
286 lua_pushstring(L, "trying to reference deleted pointer");
287 lua_error(L);
288 return 0;
290 bool ret = __lua__obj->QShortcut::autoRepeat();
291 lua_pushboolean(L, ret);
292 return 1;
294 int LuaBinder< QShortcut >::__LuaWrapCall__id (lua_State *L) {
295 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
296 if (__lua__obj==0) {
297 lua_pushstring(L, "trying to reference deleted pointer");
298 lua_error(L);
299 return 0;
301 int ret = __lua__obj->QShortcut::id();
302 lua_pushinteger(L, ret);
303 return 1;
305 int LuaBinder< QShortcut >::__LuaWrapCall__setWhatsThis (lua_State *L) {
306 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
307 if (__lua__obj==0) {
308 lua_pushstring(L, "trying to reference deleted pointer");
309 lua_error(L);
310 return 0;
312 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
313 __lua__obj->QShortcut::setWhatsThis(arg1);
314 return 0;
316 int LuaBinder< QShortcut >::__LuaWrapCall__isEnabled (lua_State *L) {
317 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
318 if (__lua__obj==0) {
319 lua_pushstring(L, "trying to reference deleted pointer");
320 lua_error(L);
321 return 0;
323 bool ret = __lua__obj->QShortcut::isEnabled();
324 lua_pushboolean(L, ret);
325 return 1;
327 int LuaBinder< QShortcut >::__LuaWrapCall__setEnabled (lua_State *L) {
328 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
329 if (__lua__obj==0) {
330 lua_pushstring(L, "trying to reference deleted pointer");
331 lua_error(L);
332 return 0;
334 bool arg1 = (bool)lua_toboolean(L, 2);
335 __lua__obj->QShortcut::setEnabled(arg1);
336 return 0;
338 int LuaBinder< QShortcut >::__LuaWrapCall__setAutoRepeat (lua_State *L) {
339 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
340 if (__lua__obj==0) {
341 lua_pushstring(L, "trying to reference deleted pointer");
342 lua_error(L);
343 return 0;
345 bool arg1 = (bool)lua_toboolean(L, 2);
346 __lua__obj->QShortcut::setAutoRepeat(arg1);
347 return 0;
349 int LuaBinder< QShortcut >::__LuaWrapCall__metaObject (lua_State *L) {
350 QShortcut *& __lua__obj = *static_cast<QShortcut**>(lqtL_checkudata(L, 1, "QShortcut*"));
351 if (__lua__obj==0) {
352 lua_pushstring(L, "trying to reference deleted pointer");
353 lua_error(L);
354 return 0;
356 const QMetaObject * ret = __lua__obj->QShortcut::metaObject();
357 lqtL_pushudata(L, ret, "QMetaObject*");
358 return 1;
360 bool LuaBinder< QShortcut >::event (QEvent * arg1) {
361 bool absorbed = false;
362 int oldtop = lua_gettop(L);
363 lqtL_pushudata(L, this, "QShortcut*");
364 if (lua_getmetatable(L, -1)) {
365 lua_getfield(L, -1, "event");
366 lua_remove(L, -2);
367 } else {
368 lua_pushnil(L);
370 lua_insert(L, -2);
371 lqtL_pushudata(L, arg1, "QEvent*");
372 if (lua_isfunction(L, -1-2)) {
373 lua_pcall(L, 1+1, 2, 0);
374 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
375 lua_pop(L, 1);
377 if (!absorbed) {
378 lua_settop(L, oldtop);
379 return this->QShortcut::event(arg1);
381 bool ret = (bool)lua_toboolean(L, -1);
382 lua_settop(L, oldtop);
383 return ret;
385 void LuaBinder< QShortcut >::customEvent (QEvent * arg1) {
386 bool absorbed = false;
387 int oldtop = lua_gettop(L);
388 lqtL_pushudata(L, this, "QShortcut*");
389 if (lua_getmetatable(L, -1)) {
390 lua_getfield(L, -1, "customEvent");
391 lua_remove(L, -2);
392 } else {
393 lua_pushnil(L);
395 lua_insert(L, -2);
396 lqtL_pushudata(L, arg1, "QEvent*");
397 if (lua_isfunction(L, -1-2)) {
398 lua_pcall(L, 1+1, 2, 0);
399 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
400 lua_pop(L, 1);
402 if (!absorbed) {
403 lua_settop(L, oldtop);
404 this->QObject::customEvent(arg1);
406 lua_settop(L, oldtop);
408 bool LuaBinder< QShortcut >::eventFilter (QObject * arg1, QEvent * arg2) {
409 bool absorbed = false;
410 int oldtop = lua_gettop(L);
411 lqtL_pushudata(L, this, "QShortcut*");
412 if (lua_getmetatable(L, -1)) {
413 lua_getfield(L, -1, "eventFilter");
414 lua_remove(L, -2);
415 } else {
416 lua_pushnil(L);
418 lua_insert(L, -2);
419 lqtL_pushudata(L, arg1, "QObject*");
420 lqtL_pushudata(L, arg2, "QEvent*");
421 if (lua_isfunction(L, -2-2)) {
422 lua_pcall(L, 2+1, 2, 0);
423 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
424 lua_pop(L, 1);
426 if (!absorbed) {
427 lua_settop(L, oldtop);
428 return this->QObject::eventFilter(arg1, arg2);
430 bool ret = (bool)lua_toboolean(L, -1);
431 lua_settop(L, oldtop);
432 return ret;
434 void LuaBinder< QShortcut >::disconnectNotify (const char * arg1) {
435 bool absorbed = false;
436 int oldtop = lua_gettop(L);
437 lqtL_pushudata(L, this, "QShortcut*");
438 if (lua_getmetatable(L, -1)) {
439 lua_getfield(L, -1, "disconnectNotify");
440 lua_remove(L, -2);
441 } else {
442 lua_pushnil(L);
444 lua_insert(L, -2);
445 lua_pushstring(L, arg1);
446 if (lua_isfunction(L, -1-2)) {
447 lua_pcall(L, 1+1, 2, 0);
448 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
449 lua_pop(L, 1);
451 if (!absorbed) {
452 lua_settop(L, oldtop);
453 this->QObject::disconnectNotify(arg1);
455 lua_settop(L, oldtop);
457 void LuaBinder< QShortcut >::childEvent (QChildEvent * arg1) {
458 bool absorbed = false;
459 int oldtop = lua_gettop(L);
460 lqtL_pushudata(L, this, "QShortcut*");
461 if (lua_getmetatable(L, -1)) {
462 lua_getfield(L, -1, "childEvent");
463 lua_remove(L, -2);
464 } else {
465 lua_pushnil(L);
467 lua_insert(L, -2);
468 lqtL_pushudata(L, arg1, "QChildEvent*");
469 if (lua_isfunction(L, -1-2)) {
470 lua_pcall(L, 1+1, 2, 0);
471 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
472 lua_pop(L, 1);
474 if (!absorbed) {
475 lua_settop(L, oldtop);
476 this->QObject::childEvent(arg1);
478 lua_settop(L, oldtop);
480 void LuaBinder< QShortcut >::timerEvent (QTimerEvent * arg1) {
481 bool absorbed = false;
482 int oldtop = lua_gettop(L);
483 lqtL_pushudata(L, this, "QShortcut*");
484 if (lua_getmetatable(L, -1)) {
485 lua_getfield(L, -1, "timerEvent");
486 lua_remove(L, -2);
487 } else {
488 lua_pushnil(L);
490 lua_insert(L, -2);
491 lqtL_pushudata(L, arg1, "QTimerEvent*");
492 if (lua_isfunction(L, -1-2)) {
493 lua_pcall(L, 1+1, 2, 0);
494 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
495 lua_pop(L, 1);
497 if (!absorbed) {
498 lua_settop(L, oldtop);
499 this->QObject::timerEvent(arg1);
501 lua_settop(L, oldtop);
503 const QMetaObject * LuaBinder< QShortcut >::metaObject () const {
504 bool absorbed = false;
505 int oldtop = lua_gettop(L);
506 lqtL_pushudata(L, this, "QShortcut*");
507 if (lua_getmetatable(L, -1)) {
508 lua_getfield(L, -1, "metaObject");
509 lua_remove(L, -2);
510 } else {
511 lua_pushnil(L);
513 lua_insert(L, -2);
514 if (lua_isfunction(L, -0-2)) {
515 lua_pcall(L, 0+1, 2, 0);
516 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
517 lua_pop(L, 1);
519 if (!absorbed) {
520 lua_settop(L, oldtop);
521 return this->QShortcut::metaObject();
523 const QMetaObject * ret = *static_cast<QMetaObject**>(lqtL_checkudata(L, -1, "QMetaObject*"));
524 lua_settop(L, oldtop);
525 return ret;
527 void LuaBinder< QShortcut >::connectNotify (const char * arg1) {
528 bool absorbed = false;
529 int oldtop = lua_gettop(L);
530 lqtL_pushudata(L, this, "QShortcut*");
531 if (lua_getmetatable(L, -1)) {
532 lua_getfield(L, -1, "connectNotify");
533 lua_remove(L, -2);
534 } else {
535 lua_pushnil(L);
537 lua_insert(L, -2);
538 lua_pushstring(L, arg1);
539 if (lua_isfunction(L, -1-2)) {
540 lua_pcall(L, 1+1, 2, 0);
541 absorbed = (bool)lua_toboolean(L, -1) || (bool)lua_toboolean(L, -2);
542 lua_pop(L, 1);
544 if (!absorbed) {
545 lua_settop(L, oldtop);
546 this->QObject::connectNotify(arg1);
548 lua_settop(L, oldtop);
550 LuaBinder< QShortcut >:: ~LuaBinder< QShortcut > () {
551 int oldtop = lua_gettop(L);
552 lqtL_pushudata(L, this, "QShortcut*");
553 lua_getfield(L, -1, "~QShortcut");
555 if (lua_isfunction(L, -1)) {
556 lua_insert(L, -2);
557 lua_pcall(L, 1, 1, 0);
558 } else {
560 lua_settop(L, oldtop);
562 int luaopen_QShortcut (lua_State *L) {
563 if (luaL_newmetatable(L, "QShortcut*")) {
564 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__parentWidget);
565 lua_setfield(L, -2, "parentWidget");
566 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__setContext);
567 lua_setfield(L, -2, "setContext");
568 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__key);
569 lua_setfield(L, -2, "key");
570 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__trUtf8);
571 lua_setfield(L, -2, "trUtf8");
572 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__context);
573 lua_setfield(L, -2, "context");
574 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__new);
575 lua_setfield(L, -2, "new");
576 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__tr);
577 lua_setfield(L, -2, "tr");
578 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__delete);
579 lua_setfield(L, -2, "delete");
580 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__setKey);
581 lua_setfield(L, -2, "setKey");
582 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__whatsThis);
583 lua_setfield(L, -2, "whatsThis");
584 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__autoRepeat);
585 lua_setfield(L, -2, "autoRepeat");
586 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__id);
587 lua_setfield(L, -2, "id");
588 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__setWhatsThis);
589 lua_setfield(L, -2, "setWhatsThis");
590 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__isEnabled);
591 lua_setfield(L, -2, "isEnabled");
592 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__setEnabled);
593 lua_setfield(L, -2, "setEnabled");
594 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__setAutoRepeat);
595 lua_setfield(L, -2, "setAutoRepeat");
596 lua_pushcfunction(L, LuaBinder< QShortcut >::__LuaWrapCall__metaObject);
597 lua_setfield(L, -2, "metaObject");
598 lua_newtable(L);
599 lua_pushboolean(L, 1);
600 lua_setfield(L, -2, "QObject*");
601 lua_setfield(L, -2, "__base");
602 lua_pushcfunction(L, lqtL_newindex);
603 lua_setfield(L, -2, "__newindex");
604 lua_pushcfunction(L, lqtL_index);
605 lua_setfield(L, -2, "__index");
606 lua_pushcfunction(L, lqtL_gc);
607 lua_setfield(L, -2, "__gc");
608 lua_pushstring(L, "QShortcut");
609 lua_setfield(L, -2, "__qtype");
611 lua_pop(L, 1);
612 return 0;