1 #include "lqt_bind_QMenu.hpp"
3 int LuaBinder
< QMenu
>::__LuaWrapCall__sizeHint (lua_State
*L
) {
4 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 QSize ret
= __lua__obj
->QMenu::sizeHint();
11 lqtL_passudata(L
, new QSize(ret
), "QSize*");
14 int LuaBinder
< QMenu
>::__LuaWrapCall__defaultAction (lua_State
*L
) {
15 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
17 lua_pushstring(L
, "trying to reference deleted pointer");
21 QAction
* ret
= __lua__obj
->QMenu::defaultAction();
22 lqtL_pushudata(L
, ret
, "QAction*");
25 int LuaBinder
< QMenu
>::__LuaWrapCall__isTearOffMenuVisible (lua_State
*L
) {
26 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
28 lua_pushstring(L
, "trying to reference deleted pointer");
32 bool ret
= __lua__obj
->QMenu::isTearOffMenuVisible();
33 lua_pushboolean(L
, ret
);
36 int LuaBinder
< QMenu
>::__LuaWrapCall__isTearOffEnabled (lua_State
*L
) {
37 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
39 lua_pushstring(L
, "trying to reference deleted pointer");
43 bool ret
= __lua__obj
->QMenu::isTearOffEnabled();
44 lua_pushboolean(L
, ret
);
47 int LuaBinder
< QMenu
>::__LuaWrapCall__setIcon (lua_State
*L
) {
48 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
50 lua_pushstring(L
, "trying to reference deleted pointer");
54 const QIcon
& arg1
= **static_cast<QIcon
**>(lqtL_checkudata(L
, 2, "QIcon*"));
55 __lua__obj
->QMenu::setIcon(arg1
);
58 int LuaBinder
< QMenu
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
59 const char * arg1
= lua_tostring(L
, 1);
60 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
61 QString ret
= QMenu::trUtf8(arg1
, arg2
);
62 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
65 int LuaBinder
< QMenu
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
66 const char * arg1
= lua_tostring(L
, 1);
67 const char * arg2
= lua_tostring(L
, 2);
68 int arg3
= lua_tointeger(L
, 3);
69 QString ret
= QMenu::trUtf8(arg1
, arg2
, arg3
);
70 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
73 int LuaBinder
< QMenu
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
75 const int premium
= 11+lua_gettop(L
);
77 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
80 score
[1] += premium
-1; // table: 0xa0e0a0;
82 score
[1] -= premium
*premium
;
84 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
87 score
[1] += premium
-1; // table: 0x9065a0;
89 score
[1] -= premium
*premium
;
92 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
95 score
[2] += premium
-1; // table: 0x9dfec0;
97 score
[2] -= premium
*premium
;
99 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
102 score
[2] += premium
-1; // table: 0xaaefc0;
104 score
[2] -= premium
*premium
;
106 if (lua_isnumber(L
, 3)) {
109 score
[2] += premium
-1; // table: 0x7f02e0;
111 score
[2] -= premium
*premium
;
114 for (int i
=1;i
<=2;i
++) {
115 if (score
[best
] < score
[i
]) { best
= i
; }
118 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
119 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
121 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
125 int LuaBinder
< QMenu
>::__LuaWrapCall__actionAt (lua_State
*L
) {
126 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
128 lua_pushstring(L
, "trying to reference deleted pointer");
132 const QPoint
& arg1
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 2, "QPoint*"));
133 QAction
* ret
= __lua__obj
->QMenu::actionAt(arg1
);
134 lqtL_pushudata(L
, ret
, "QAction*");
137 int LuaBinder
< QMenu
>::__LuaWrapCall__icon (lua_State
*L
) {
138 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
140 lua_pushstring(L
, "trying to reference deleted pointer");
144 QIcon ret
= __lua__obj
->QMenu::icon();
145 lqtL_passudata(L
, new QIcon(ret
), "QIcon*");
148 int LuaBinder
< QMenu
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
149 const char * arg1
= lua_tostring(L
, 1);
150 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
151 QString ret
= QMenu::tr(arg1
, arg2
);
152 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
155 int LuaBinder
< QMenu
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
156 const char * arg1
= lua_tostring(L
, 1);
157 const char * arg2
= lua_tostring(L
, 2);
158 int arg3
= lua_tointeger(L
, 3);
159 QString ret
= QMenu::tr(arg1
, arg2
, arg3
);
160 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
163 int LuaBinder
< QMenu
>::__LuaWrapCall__tr (lua_State
*L
) {
165 const int premium
= 11+lua_gettop(L
);
167 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
170 score
[1] += premium
-1; // table: 0x62a7a0;
172 score
[1] -= premium
*premium
;
174 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
177 score
[1] += premium
-1; // table: 0x6cff50;
179 score
[1] -= premium
*premium
;
182 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
185 score
[2] += premium
-1; // table: 0x703480;
187 score
[2] -= premium
*premium
;
189 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
192 score
[2] += premium
-1; // table: 0x7f3fb0;
194 score
[2] -= premium
*premium
;
196 if (lua_isnumber(L
, 3)) {
199 score
[2] += premium
-1; // table: 0xb6c1d0;
201 score
[2] -= premium
*premium
;
204 for (int i
=1;i
<=2;i
++) {
205 if (score
[best
] < score
[i
]) { best
= i
; }
208 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
209 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
211 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
215 int LuaBinder
< QMenu
>::__LuaWrapCall__isEmpty (lua_State
*L
) {
216 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
218 lua_pushstring(L
, "trying to reference deleted pointer");
222 bool ret
= __lua__obj
->QMenu::isEmpty();
223 lua_pushboolean(L
, ret
);
226 int LuaBinder
< QMenu
>::__LuaWrapCall__popup (lua_State
*L
) {
227 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
229 lua_pushstring(L
, "trying to reference deleted pointer");
233 const QPoint
& arg1
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 2, "QPoint*"));
234 QAction
* arg2
= lqtL_testudata(L
, 3, "QAction*")?*static_cast<QAction
**>(lqtL_checkudata(L
, 3, "QAction*")):static_cast< QAction
* >(0);
235 __lua__obj
->QMenu::popup(arg1
, arg2
);
238 int LuaBinder
< QMenu
>::__LuaWrapCall__title (lua_State
*L
) {
239 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
241 lua_pushstring(L
, "trying to reference deleted pointer");
245 QString ret
= __lua__obj
->QMenu::title();
246 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
249 int LuaBinder
< QMenu
>::__LuaWrapCall__setDefaultAction (lua_State
*L
) {
250 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
252 lua_pushstring(L
, "trying to reference deleted pointer");
256 QAction
* arg1
= *static_cast<QAction
**>(lqtL_checkudata(L
, 2, "QAction*"));
257 __lua__obj
->QMenu::setDefaultAction(arg1
);
260 int LuaBinder
< QMenu
>::__LuaWrapCall__setNoReplayFor (lua_State
*L
) {
261 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
263 lua_pushstring(L
, "trying to reference deleted pointer");
267 QWidget
* arg1
= *static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*"));
268 __lua__obj
->QMenu::setNoReplayFor(arg1
);
271 int LuaBinder
< QMenu
>::__LuaWrapCall__setSeparatorsCollapsible (lua_State
*L
) {
272 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
274 lua_pushstring(L
, "trying to reference deleted pointer");
278 bool arg1
= (bool)lua_toboolean(L
, 2);
279 __lua__obj
->QMenu::setSeparatorsCollapsible(arg1
);
282 int LuaBinder
< QMenu
>::__LuaWrapCall__addAction__OverloadedVersion__1 (lua_State
*L
) {
283 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
285 lua_pushstring(L
, "trying to reference deleted pointer");
289 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
290 QAction
* ret
= __lua__obj
->QMenu::addAction(arg1
);
291 lqtL_pushudata(L
, ret
, "QAction*");
294 int LuaBinder
< QMenu
>::__LuaWrapCall__addAction__OverloadedVersion__2 (lua_State
*L
) {
295 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
297 lua_pushstring(L
, "trying to reference deleted pointer");
301 const QIcon
& arg1
= **static_cast<QIcon
**>(lqtL_checkudata(L
, 2, "QIcon*"));
302 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
303 QAction
* ret
= __lua__obj
->QMenu::addAction(arg1
, arg2
);
304 lqtL_pushudata(L
, ret
, "QAction*");
307 int LuaBinder
< QMenu
>::__LuaWrapCall__addAction__OverloadedVersion__3 (lua_State
*L
) {
308 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
310 lua_pushstring(L
, "trying to reference deleted pointer");
314 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
315 const QObject
* arg2
= *static_cast<QObject
**>(lqtL_checkudata(L
, 3, "QObject*"));
316 const char * arg3
= lua_tostring(L
, 4);
317 const QKeySequence
& arg4
= lqtL_testudata(L
, 5, "QKeySequence*")?**static_cast<QKeySequence
**>(lqtL_checkudata(L
, 5, "QKeySequence*")):static_cast< const QKeySequence
& >(0);
318 QAction
* ret
= __lua__obj
->QMenu::addAction(arg1
, arg2
, arg3
, arg4
);
319 lqtL_pushudata(L
, ret
, "QAction*");
322 int LuaBinder
< QMenu
>::__LuaWrapCall__addAction__OverloadedVersion__4 (lua_State
*L
) {
323 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
325 lua_pushstring(L
, "trying to reference deleted pointer");
329 const QIcon
& arg1
= **static_cast<QIcon
**>(lqtL_checkudata(L
, 2, "QIcon*"));
330 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
331 const QObject
* arg3
= *static_cast<QObject
**>(lqtL_checkudata(L
, 4, "QObject*"));
332 const char * arg4
= lua_tostring(L
, 5);
333 const QKeySequence
& arg5
= lqtL_testudata(L
, 6, "QKeySequence*")?**static_cast<QKeySequence
**>(lqtL_checkudata(L
, 6, "QKeySequence*")):static_cast< const QKeySequence
& >(0);
334 QAction
* ret
= __lua__obj
->QMenu::addAction(arg1
, arg2
, arg3
, arg4
, arg5
);
335 lqtL_pushudata(L
, ret
, "QAction*");
338 int LuaBinder
< QMenu
>::__LuaWrapCall__addAction (lua_State
*L
) {
340 const int premium
= 11+lua_gettop(L
);
342 score
[1] += lqtL_testudata(L
, 1, "QMenu*")?premium
:-premium
*premium
;
343 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
346 score
[1] += premium
-1; // table: 0xb58c90;
348 score
[1] -= premium
*premium
;
351 score
[2] += lqtL_testudata(L
, 1, "QMenu*")?premium
:-premium
*premium
;
352 if (lqtL_testudata(L
, 2, "QIcon*")) {
355 score
[2] += premium
-1; // table: 0xc0f990;
357 score
[2] -= premium
*premium
;
359 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
362 score
[2] += premium
-1; // table: 0x936ae0;
364 score
[2] -= premium
*premium
;
367 score
[3] += lqtL_testudata(L
, 1, "QMenu*")?premium
:-premium
*premium
;
368 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
371 score
[3] += premium
-1; // table: 0x6759d0;
373 score
[3] -= premium
*premium
;
375 if (lqtL_testudata(L
, 3, "QObject*")) {
378 score
[3] += premium
-1; // table: 0x756cd0;
380 score
[3] -= premium
*premium
;
382 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
385 score
[3] += premium
-1; // table: 0xb27c60;
387 score
[3] -= premium
*premium
;
389 if (lqtL_testudata(L
, 5, "QKeySequence*")) {
392 score
[3] += premium
-1; // table: 0x929630;
394 score
[3] -= premium
*premium
;
397 score
[4] += lqtL_testudata(L
, 1, "QMenu*")?premium
:-premium
*premium
;
398 if (lqtL_testudata(L
, 2, "QIcon*")) {
401 score
[4] += premium
-1; // table: 0x9b7eb0;
403 score
[4] -= premium
*premium
;
405 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
408 score
[4] += premium
-1; // table: 0x635f10;
410 score
[4] -= premium
*premium
;
412 if (lqtL_testudata(L
, 4, "QObject*")) {
415 score
[4] += premium
-1; // table: 0x7f0630;
417 score
[4] -= premium
*premium
;
419 if ((lua_type(L
, 5)==LUA_TSTRING
)) {
422 score
[4] += premium
-1; // table: 0xb38e40;
424 score
[4] -= premium
*premium
;
426 if (lqtL_testudata(L
, 6, "QKeySequence*")) {
429 score
[4] += premium
-1; // table: 0x87af20;
431 score
[4] -= premium
*premium
;
434 for (int i
=1;i
<=4;i
++) {
435 if (score
[best
] < score
[i
]) { best
= i
; }
438 case 1: return __LuaWrapCall__addAction__OverloadedVersion__1(L
); break;
439 case 2: return __LuaWrapCall__addAction__OverloadedVersion__2(L
); break;
440 case 3: return __LuaWrapCall__addAction__OverloadedVersion__3(L
); break;
441 case 4: return __LuaWrapCall__addAction__OverloadedVersion__4(L
); break;
443 lua_pushstring(L
, "no overload of function __LuaWrapCall__addAction matching arguments");
447 int LuaBinder
< QMenu
>::__LuaWrapCall__insertMenu (lua_State
*L
) {
448 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
450 lua_pushstring(L
, "trying to reference deleted pointer");
454 QAction
* arg1
= *static_cast<QAction
**>(lqtL_checkudata(L
, 2, "QAction*"));
455 QMenu
* arg2
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 3, "QMenu*"));
456 QAction
* ret
= __lua__obj
->QMenu::insertMenu(arg1
, arg2
);
457 lqtL_pushudata(L
, ret
, "QAction*");
460 int LuaBinder
< QMenu
>::__LuaWrapCall__clear (lua_State
*L
) {
461 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
463 lua_pushstring(L
, "trying to reference deleted pointer");
467 __lua__obj
->QMenu::clear();
470 int LuaBinder
< QMenu
>::__LuaWrapCall__delete (lua_State
*L
) {
471 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
473 lua_pushstring(L
, "trying to reference deleted pointer");
481 int LuaBinder
< QMenu
>::__LuaWrapCall__new__OverloadedVersion__1 (lua_State
*L
) {
482 QWidget
* arg1
= lqtL_testudata(L
, 1, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*")):static_cast< QWidget
* >(0);
483 QMenu
* ret
= new LuaBinder
< QMenu
>(L
, arg1
);
484 lqtL_passudata(L
, ret
, "QMenu*");
487 int LuaBinder
< QMenu
>::__LuaWrapCall__new__OverloadedVersion__2 (lua_State
*L
) {
488 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 1), lua_objlen(L
, 1));
489 QWidget
* arg2
= lqtL_testudata(L
, 2, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*")):static_cast< QWidget
* >(0);
490 QMenu
* ret
= new LuaBinder
< QMenu
>(L
, arg1
, arg2
);
491 lqtL_passudata(L
, ret
, "QMenu*");
494 int LuaBinder
< QMenu
>::__LuaWrapCall__new (lua_State
*L
) {
496 const int premium
= 11+lua_gettop(L
);
498 if (lqtL_testudata(L
, 1, "QWidget*")) {
501 score
[1] += premium
-1; // table: 0x9ff0c0;
503 score
[1] -= premium
*premium
;
506 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
509 score
[2] += premium
-1; // table: 0x802520;
511 score
[2] -= premium
*premium
;
513 if (lqtL_testudata(L
, 2, "QWidget*")) {
516 score
[2] += premium
-1; // table: 0x6feeb0;
518 score
[2] -= premium
*premium
;
521 for (int i
=1;i
<=2;i
++) {
522 if (score
[best
] < score
[i
]) { best
= i
; }
525 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L
); break;
526 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L
); break;
528 lua_pushstring(L
, "no overload of function __LuaWrapCall__new matching arguments");
532 int LuaBinder
< QMenu
>::__LuaWrapCall__actionGeometry (lua_State
*L
) {
533 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
535 lua_pushstring(L
, "trying to reference deleted pointer");
539 QAction
* arg1
= *static_cast<QAction
**>(lqtL_checkudata(L
, 2, "QAction*"));
540 QRect ret
= __lua__obj
->QMenu::actionGeometry(arg1
);
541 lqtL_passudata(L
, new QRect(ret
), "QRect*");
544 int LuaBinder
< QMenu
>::__LuaWrapCall__addSeparator (lua_State
*L
) {
545 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
547 lua_pushstring(L
, "trying to reference deleted pointer");
551 QAction
* ret
= __lua__obj
->QMenu::addSeparator();
552 lqtL_pushudata(L
, ret
, "QAction*");
555 int LuaBinder
< QMenu
>::__LuaWrapCall__insertSeparator (lua_State
*L
) {
556 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
558 lua_pushstring(L
, "trying to reference deleted pointer");
562 QAction
* arg1
= *static_cast<QAction
**>(lqtL_checkudata(L
, 2, "QAction*"));
563 QAction
* ret
= __lua__obj
->QMenu::insertSeparator(arg1
);
564 lqtL_pushudata(L
, ret
, "QAction*");
567 int LuaBinder
< QMenu
>::__LuaWrapCall__metaObject (lua_State
*L
) {
568 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
570 lua_pushstring(L
, "trying to reference deleted pointer");
574 const QMetaObject
* ret
= __lua__obj
->QMenu::metaObject();
575 lqtL_pushudata(L
, ret
, "QMetaObject*");
578 int LuaBinder
< QMenu
>::__LuaWrapCall__hideTearOffMenu (lua_State
*L
) {
579 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
581 lua_pushstring(L
, "trying to reference deleted pointer");
585 __lua__obj
->QMenu::hideTearOffMenu();
588 int LuaBinder
< QMenu
>::__LuaWrapCall__addMenu__OverloadedVersion__1 (lua_State
*L
) {
589 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
591 lua_pushstring(L
, "trying to reference deleted pointer");
595 QMenu
* arg1
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 2, "QMenu*"));
596 QAction
* ret
= __lua__obj
->QMenu::addMenu(arg1
);
597 lqtL_pushudata(L
, ret
, "QAction*");
600 int LuaBinder
< QMenu
>::__LuaWrapCall__addMenu__OverloadedVersion__2 (lua_State
*L
) {
601 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
603 lua_pushstring(L
, "trying to reference deleted pointer");
607 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
608 QMenu
* ret
= __lua__obj
->QMenu::addMenu(arg1
);
609 lqtL_pushudata(L
, ret
, "QMenu*");
612 int LuaBinder
< QMenu
>::__LuaWrapCall__addMenu__OverloadedVersion__3 (lua_State
*L
) {
613 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
615 lua_pushstring(L
, "trying to reference deleted pointer");
619 const QIcon
& arg1
= **static_cast<QIcon
**>(lqtL_checkudata(L
, 2, "QIcon*"));
620 const QString
& arg2
= QString::fromAscii(lua_tostring(L
, 3), lua_objlen(L
, 3));
621 QMenu
* ret
= __lua__obj
->QMenu::addMenu(arg1
, arg2
);
622 lqtL_pushudata(L
, ret
, "QMenu*");
625 int LuaBinder
< QMenu
>::__LuaWrapCall__addMenu (lua_State
*L
) {
627 const int premium
= 11+lua_gettop(L
);
629 score
[1] += lqtL_testudata(L
, 1, "QMenu*")?premium
:-premium
*premium
;
630 if (lqtL_testudata(L
, 2, "QMenu*")) {
633 score
[1] += premium
-1; // table: 0xa714c0;
635 score
[1] -= premium
*premium
;
638 score
[2] += lqtL_testudata(L
, 1, "QMenu*")?premium
:-premium
*premium
;
639 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
642 score
[2] += premium
-1; // table: 0x5ef9a0;
644 score
[2] -= premium
*premium
;
647 score
[3] += lqtL_testudata(L
, 1, "QMenu*")?premium
:-premium
*premium
;
648 if (lqtL_testudata(L
, 2, "QIcon*")) {
651 score
[3] += premium
-1; // table: 0x7f0d00;
653 score
[3] -= premium
*premium
;
655 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
658 score
[3] += premium
-1; // table: 0xb41250;
660 score
[3] -= premium
*premium
;
663 for (int i
=1;i
<=3;i
++) {
664 if (score
[best
] < score
[i
]) { best
= i
; }
667 case 1: return __LuaWrapCall__addMenu__OverloadedVersion__1(L
); break;
668 case 2: return __LuaWrapCall__addMenu__OverloadedVersion__2(L
); break;
669 case 3: return __LuaWrapCall__addMenu__OverloadedVersion__3(L
); break;
671 lua_pushstring(L
, "no overload of function __LuaWrapCall__addMenu matching arguments");
675 int LuaBinder
< QMenu
>::__LuaWrapCall__setTearOffEnabled (lua_State
*L
) {
676 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
678 lua_pushstring(L
, "trying to reference deleted pointer");
682 bool arg1
= (bool)lua_toboolean(L
, 2);
683 __lua__obj
->QMenu::setTearOffEnabled(arg1
);
686 int LuaBinder
< QMenu
>::__LuaWrapCall__separatorsCollapsible (lua_State
*L
) {
687 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
689 lua_pushstring(L
, "trying to reference deleted pointer");
693 bool ret
= __lua__obj
->QMenu::separatorsCollapsible();
694 lua_pushboolean(L
, ret
);
697 int LuaBinder
< QMenu
>::__LuaWrapCall__setActiveAction (lua_State
*L
) {
698 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
700 lua_pushstring(L
, "trying to reference deleted pointer");
704 QAction
* arg1
= *static_cast<QAction
**>(lqtL_checkudata(L
, 2, "QAction*"));
705 __lua__obj
->QMenu::setActiveAction(arg1
);
708 int LuaBinder
< QMenu
>::__LuaWrapCall__menuAction (lua_State
*L
) {
709 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
711 lua_pushstring(L
, "trying to reference deleted pointer");
715 QAction
* ret
= __lua__obj
->QMenu::menuAction();
716 lqtL_pushudata(L
, ret
, "QAction*");
719 int LuaBinder
< QMenu
>::__LuaWrapCall__exec__OverloadedVersion__1 (lua_State
*L
) {
720 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
722 lua_pushstring(L
, "trying to reference deleted pointer");
726 QAction
* ret
= __lua__obj
->QMenu::exec();
727 lqtL_pushudata(L
, ret
, "QAction*");
730 int LuaBinder
< QMenu
>::__LuaWrapCall__exec__OverloadedVersion__2 (lua_State
*L
) {
731 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
733 lua_pushstring(L
, "trying to reference deleted pointer");
737 const QPoint
& arg1
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 2, "QPoint*"));
738 QAction
* arg2
= lqtL_testudata(L
, 3, "QAction*")?*static_cast<QAction
**>(lqtL_checkudata(L
, 3, "QAction*")):static_cast< QAction
* >(0);
739 QAction
* ret
= __lua__obj
->QMenu::exec(arg1
, arg2
);
740 lqtL_pushudata(L
, ret
, "QAction*");
743 int LuaBinder
< QMenu
>::__LuaWrapCall__exec__OverloadedVersion__3 (lua_State
*L
) {
744 QList
<QAction
*> arg1
= **static_cast<QList
<QAction
*>**>(lqtL_checkudata(L
, 1, "QList<QAction*>*"));
745 const QPoint
& arg2
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 2, "QPoint*"));
746 QAction
* arg3
= lqtL_testudata(L
, 3, "QAction*")?*static_cast<QAction
**>(lqtL_checkudata(L
, 3, "QAction*")):static_cast< QAction
* >(0);
747 QAction
* ret
= QMenu::exec(arg1
, arg2
, arg3
);
748 lqtL_pushudata(L
, ret
, "QAction*");
751 int LuaBinder
< QMenu
>::__LuaWrapCall__exec (lua_State
*L
) {
753 const int premium
= 11+lua_gettop(L
);
755 score
[1] += lqtL_testudata(L
, 1, "QMenu*")?premium
:-premium
*premium
;
757 score
[2] += lqtL_testudata(L
, 1, "QMenu*")?premium
:-premium
*premium
;
758 if (lqtL_testudata(L
, 2, "QPoint*")) {
761 score
[2] += premium
-1; // table: 0xb418e0;
763 score
[2] -= premium
*premium
;
765 if (lqtL_testudata(L
, 3, "QAction*")) {
768 score
[2] += premium
-1; // table: 0xb454a0;
770 score
[2] -= premium
*premium
;
773 if (lqtL_testudata(L
, 1, "QList<QAction*>*")) {
776 score
[3] += premium
-1; // table: 0xb65760;
778 score
[3] -= premium
*premium
;
780 if (lqtL_testudata(L
, 2, "QPoint*")) {
783 score
[3] += premium
-1; // table: 0xb28b70;
785 score
[3] -= premium
*premium
;
787 if (lqtL_testudata(L
, 3, "QAction*")) {
790 score
[3] += premium
-1; // table: 0xb16070;
792 score
[3] -= premium
*premium
;
795 for (int i
=1;i
<=3;i
++) {
796 if (score
[best
] < score
[i
]) { best
= i
; }
799 case 1: return __LuaWrapCall__exec__OverloadedVersion__1(L
); break;
800 case 2: return __LuaWrapCall__exec__OverloadedVersion__2(L
); break;
801 case 3: return __LuaWrapCall__exec__OverloadedVersion__3(L
); break;
803 lua_pushstring(L
, "no overload of function __LuaWrapCall__exec matching arguments");
807 int LuaBinder
< QMenu
>::__LuaWrapCall__setTitle (lua_State
*L
) {
808 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
810 lua_pushstring(L
, "trying to reference deleted pointer");
814 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
815 __lua__obj
->QMenu::setTitle(arg1
);
818 int LuaBinder
< QMenu
>::__LuaWrapCall__activeAction (lua_State
*L
) {
819 QMenu
*& __lua__obj
= *static_cast<QMenu
**>(lqtL_checkudata(L
, 1, "QMenu*"));
821 lua_pushstring(L
, "trying to reference deleted pointer");
825 QAction
* ret
= __lua__obj
->QMenu::activeAction();
826 lqtL_pushudata(L
, ret
, "QAction*");
829 void LuaBinder
< QMenu
>::styleChange (QStyle
& arg1
) {
830 bool absorbed
= false;
831 int oldtop
= lua_gettop(L
);
832 lqtL_pushudata(L
, this, "QMenu*");
833 if (lua_getmetatable(L
, -1)) {
834 lua_getfield(L
, -1, "styleChange");
840 lqtL_pushudata(L
, &(arg1
), "QStyle*");
841 if (lua_isfunction(L
, -1-2)) {
842 lua_pcall(L
, 1+1, 2, 0);
843 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
847 lua_settop(L
, oldtop
);
848 this->QWidget::styleChange(arg1
);
850 lua_settop(L
, oldtop
);
852 void LuaBinder
< QMenu
>::focusInEvent (QFocusEvent
* arg1
) {
853 bool absorbed
= false;
854 int oldtop
= lua_gettop(L
);
855 lqtL_pushudata(L
, this, "QMenu*");
856 if (lua_getmetatable(L
, -1)) {
857 lua_getfield(L
, -1, "focusInEvent");
863 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
864 if (lua_isfunction(L
, -1-2)) {
865 lua_pcall(L
, 1+1, 2, 0);
866 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
870 lua_settop(L
, oldtop
);
871 this->QWidget::focusInEvent(arg1
);
873 lua_settop(L
, oldtop
);
875 void LuaBinder
< QMenu
>::keyPressEvent (QKeyEvent
* arg1
) {
876 bool absorbed
= false;
877 int oldtop
= lua_gettop(L
);
878 lqtL_pushudata(L
, this, "QMenu*");
879 if (lua_getmetatable(L
, -1)) {
880 lua_getfield(L
, -1, "keyPressEvent");
886 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
887 if (lua_isfunction(L
, -1-2)) {
888 lua_pcall(L
, 1+1, 2, 0);
889 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
893 lua_settop(L
, oldtop
);
894 this->QMenu::keyPressEvent(arg1
);
896 lua_settop(L
, oldtop
);
898 void LuaBinder
< QMenu
>::contextMenuEvent (QContextMenuEvent
* arg1
) {
899 bool absorbed
= false;
900 int oldtop
= lua_gettop(L
);
901 lqtL_pushudata(L
, this, "QMenu*");
902 if (lua_getmetatable(L
, -1)) {
903 lua_getfield(L
, -1, "contextMenuEvent");
909 lqtL_pushudata(L
, arg1
, "QContextMenuEvent*");
910 if (lua_isfunction(L
, -1-2)) {
911 lua_pcall(L
, 1+1, 2, 0);
912 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
916 lua_settop(L
, oldtop
);
917 this->QWidget::contextMenuEvent(arg1
);
919 lua_settop(L
, oldtop
);
921 int LuaBinder
< QMenu
>::devType () const {
922 bool absorbed
= false;
923 int oldtop
= lua_gettop(L
);
924 lqtL_pushudata(L
, this, "QMenu*");
925 if (lua_getmetatable(L
, -1)) {
926 lua_getfield(L
, -1, "devType");
932 if (lua_isfunction(L
, -0-2)) {
933 lua_pcall(L
, 0+1, 2, 0);
934 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
938 lua_settop(L
, oldtop
);
939 return this->QWidget::devType();
941 int ret
= lua_tointeger(L
, -1);
942 lua_settop(L
, oldtop
);
945 void LuaBinder
< QMenu
>::setVisible (bool arg1
) {
946 bool absorbed
= false;
947 int oldtop
= lua_gettop(L
);
948 lqtL_pushudata(L
, this, "QMenu*");
949 if (lua_getmetatable(L
, -1)) {
950 lua_getfield(L
, -1, "setVisible");
956 lua_pushboolean(L
, arg1
);
957 if (lua_isfunction(L
, -1-2)) {
958 lua_pcall(L
, 1+1, 2, 0);
959 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
963 lua_settop(L
, oldtop
);
964 this->QWidget::setVisible(arg1
);
966 lua_settop(L
, oldtop
);
968 bool LuaBinder
< QMenu
>::focusNextPrevChild (bool arg1
) {
969 bool absorbed
= false;
970 int oldtop
= lua_gettop(L
);
971 lqtL_pushudata(L
, this, "QMenu*");
972 if (lua_getmetatable(L
, -1)) {
973 lua_getfield(L
, -1, "focusNextPrevChild");
979 lua_pushboolean(L
, arg1
);
980 if (lua_isfunction(L
, -1-2)) {
981 lua_pcall(L
, 1+1, 2, 0);
982 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
986 lua_settop(L
, oldtop
);
987 return this->QMenu::focusNextPrevChild(arg1
);
989 bool ret
= (bool)lua_toboolean(L
, -1);
990 lua_settop(L
, oldtop
);
993 QPaintEngine
* LuaBinder
< QMenu
>::paintEngine () const {
994 bool absorbed
= false;
995 int oldtop
= lua_gettop(L
);
996 lqtL_pushudata(L
, this, "QMenu*");
997 if (lua_getmetatable(L
, -1)) {
998 lua_getfield(L
, -1, "paintEngine");
1004 if (lua_isfunction(L
, -0-2)) {
1005 lua_pcall(L
, 0+1, 2, 0);
1006 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1010 lua_settop(L
, oldtop
);
1011 return this->QWidget::paintEngine();
1013 QPaintEngine
* ret
= *static_cast<QPaintEngine
**>(lqtL_checkudata(L
, -1, "QPaintEngine*"));
1014 lua_settop(L
, oldtop
);
1017 void LuaBinder
< QMenu
>::dragLeaveEvent (QDragLeaveEvent
* arg1
) {
1018 bool absorbed
= false;
1019 int oldtop
= lua_gettop(L
);
1020 lqtL_pushudata(L
, this, "QMenu*");
1021 if (lua_getmetatable(L
, -1)) {
1022 lua_getfield(L
, -1, "dragLeaveEvent");
1028 lqtL_pushudata(L
, arg1
, "QDragLeaveEvent*");
1029 if (lua_isfunction(L
, -1-2)) {
1030 lua_pcall(L
, 1+1, 2, 0);
1031 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1035 lua_settop(L
, oldtop
);
1036 this->QWidget::dragLeaveEvent(arg1
);
1038 lua_settop(L
, oldtop
);
1040 void LuaBinder
< QMenu
>::mousePressEvent (QMouseEvent
* arg1
) {
1041 bool absorbed
= false;
1042 int oldtop
= lua_gettop(L
);
1043 lqtL_pushudata(L
, this, "QMenu*");
1044 if (lua_getmetatable(L
, -1)) {
1045 lua_getfield(L
, -1, "mousePressEvent");
1051 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1052 if (lua_isfunction(L
, -1-2)) {
1053 lua_pcall(L
, 1+1, 2, 0);
1054 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1058 lua_settop(L
, oldtop
);
1059 this->QMenu::mousePressEvent(arg1
);
1061 lua_settop(L
, oldtop
);
1063 QSize LuaBinder
< QMenu
>::sizeHint () const {
1064 bool absorbed
= false;
1065 int oldtop
= lua_gettop(L
);
1066 lqtL_pushudata(L
, this, "QMenu*");
1067 if (lua_getmetatable(L
, -1)) {
1068 lua_getfield(L
, -1, "sizeHint");
1074 if (lua_isfunction(L
, -0-2)) {
1075 lua_pcall(L
, 0+1, 2, 0);
1076 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1080 lua_settop(L
, oldtop
);
1081 return this->QMenu::sizeHint();
1083 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1084 lua_settop(L
, oldtop
);
1087 void LuaBinder
< QMenu
>::changeEvent (QEvent
* arg1
) {
1088 bool absorbed
= false;
1089 int oldtop
= lua_gettop(L
);
1090 lqtL_pushudata(L
, this, "QMenu*");
1091 if (lua_getmetatable(L
, -1)) {
1092 lua_getfield(L
, -1, "changeEvent");
1098 lqtL_pushudata(L
, arg1
, "QEvent*");
1099 if (lua_isfunction(L
, -1-2)) {
1100 lua_pcall(L
, 1+1, 2, 0);
1101 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1105 lua_settop(L
, oldtop
);
1106 this->QMenu::changeEvent(arg1
);
1108 lua_settop(L
, oldtop
);
1110 void LuaBinder
< QMenu
>::tabletEvent (QTabletEvent
* arg1
) {
1111 bool absorbed
= false;
1112 int oldtop
= lua_gettop(L
);
1113 lqtL_pushudata(L
, this, "QMenu*");
1114 if (lua_getmetatable(L
, -1)) {
1115 lua_getfield(L
, -1, "tabletEvent");
1121 lqtL_pushudata(L
, arg1
, "QTabletEvent*");
1122 if (lua_isfunction(L
, -1-2)) {
1123 lua_pcall(L
, 1+1, 2, 0);
1124 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1128 lua_settop(L
, oldtop
);
1129 this->QWidget::tabletEvent(arg1
);
1131 lua_settop(L
, oldtop
);
1133 void LuaBinder
< QMenu
>::closeEvent (QCloseEvent
* arg1
) {
1134 bool absorbed
= false;
1135 int oldtop
= lua_gettop(L
);
1136 lqtL_pushudata(L
, this, "QMenu*");
1137 if (lua_getmetatable(L
, -1)) {
1138 lua_getfield(L
, -1, "closeEvent");
1144 lqtL_pushudata(L
, arg1
, "QCloseEvent*");
1145 if (lua_isfunction(L
, -1-2)) {
1146 lua_pcall(L
, 1+1, 2, 0);
1147 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1151 lua_settop(L
, oldtop
);
1152 this->QWidget::closeEvent(arg1
);
1154 lua_settop(L
, oldtop
);
1156 void LuaBinder
< QMenu
>::dragEnterEvent (QDragEnterEvent
* arg1
) {
1157 bool absorbed
= false;
1158 int oldtop
= lua_gettop(L
);
1159 lqtL_pushudata(L
, this, "QMenu*");
1160 if (lua_getmetatable(L
, -1)) {
1161 lua_getfield(L
, -1, "dragEnterEvent");
1167 lqtL_pushudata(L
, arg1
, "QDragEnterEvent*");
1168 if (lua_isfunction(L
, -1-2)) {
1169 lua_pcall(L
, 1+1, 2, 0);
1170 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1174 lua_settop(L
, oldtop
);
1175 this->QWidget::dragEnterEvent(arg1
);
1177 lua_settop(L
, oldtop
);
1179 QSize LuaBinder
< QMenu
>::minimumSizeHint () const {
1180 bool absorbed
= false;
1181 int oldtop
= lua_gettop(L
);
1182 lqtL_pushudata(L
, this, "QMenu*");
1183 if (lua_getmetatable(L
, -1)) {
1184 lua_getfield(L
, -1, "minimumSizeHint");
1190 if (lua_isfunction(L
, -0-2)) {
1191 lua_pcall(L
, 0+1, 2, 0);
1192 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1196 lua_settop(L
, oldtop
);
1197 return this->QWidget::minimumSizeHint();
1199 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1200 lua_settop(L
, oldtop
);
1203 void LuaBinder
< QMenu
>::dragMoveEvent (QDragMoveEvent
* arg1
) {
1204 bool absorbed
= false;
1205 int oldtop
= lua_gettop(L
);
1206 lqtL_pushudata(L
, this, "QMenu*");
1207 if (lua_getmetatable(L
, -1)) {
1208 lua_getfield(L
, -1, "dragMoveEvent");
1214 lqtL_pushudata(L
, arg1
, "QDragMoveEvent*");
1215 if (lua_isfunction(L
, -1-2)) {
1216 lua_pcall(L
, 1+1, 2, 0);
1217 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1221 lua_settop(L
, oldtop
);
1222 this->QWidget::dragMoveEvent(arg1
);
1224 lua_settop(L
, oldtop
);
1226 void LuaBinder
< QMenu
>::dropEvent (QDropEvent
* arg1
) {
1227 bool absorbed
= false;
1228 int oldtop
= lua_gettop(L
);
1229 lqtL_pushudata(L
, this, "QMenu*");
1230 if (lua_getmetatable(L
, -1)) {
1231 lua_getfield(L
, -1, "dropEvent");
1237 lqtL_pushudata(L
, arg1
, "QDropEvent*");
1238 if (lua_isfunction(L
, -1-2)) {
1239 lua_pcall(L
, 1+1, 2, 0);
1240 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1244 lua_settop(L
, oldtop
);
1245 this->QWidget::dropEvent(arg1
);
1247 lua_settop(L
, oldtop
);
1249 void LuaBinder
< QMenu
>::showEvent (QShowEvent
* arg1
) {
1250 bool absorbed
= false;
1251 int oldtop
= lua_gettop(L
);
1252 lqtL_pushudata(L
, this, "QMenu*");
1253 if (lua_getmetatable(L
, -1)) {
1254 lua_getfield(L
, -1, "showEvent");
1260 lqtL_pushudata(L
, arg1
, "QShowEvent*");
1261 if (lua_isfunction(L
, -1-2)) {
1262 lua_pcall(L
, 1+1, 2, 0);
1263 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1267 lua_settop(L
, oldtop
);
1268 this->QWidget::showEvent(arg1
);
1270 lua_settop(L
, oldtop
);
1272 void LuaBinder
< QMenu
>::customEvent (QEvent
* arg1
) {
1273 bool absorbed
= false;
1274 int oldtop
= lua_gettop(L
);
1275 lqtL_pushudata(L
, this, "QMenu*");
1276 if (lua_getmetatable(L
, -1)) {
1277 lua_getfield(L
, -1, "customEvent");
1283 lqtL_pushudata(L
, arg1
, "QEvent*");
1284 if (lua_isfunction(L
, -1-2)) {
1285 lua_pcall(L
, 1+1, 2, 0);
1286 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1290 lua_settop(L
, oldtop
);
1291 this->QObject::customEvent(arg1
);
1293 lua_settop(L
, oldtop
);
1295 void LuaBinder
< QMenu
>::paintEvent (QPaintEvent
* arg1
) {
1296 bool absorbed
= false;
1297 int oldtop
= lua_gettop(L
);
1298 lqtL_pushudata(L
, this, "QMenu*");
1299 if (lua_getmetatable(L
, -1)) {
1300 lua_getfield(L
, -1, "paintEvent");
1306 lqtL_pushudata(L
, arg1
, "QPaintEvent*");
1307 if (lua_isfunction(L
, -1-2)) {
1308 lua_pcall(L
, 1+1, 2, 0);
1309 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1313 lua_settop(L
, oldtop
);
1314 this->QMenu::paintEvent(arg1
);
1316 lua_settop(L
, oldtop
);
1318 void LuaBinder
< QMenu
>::resizeEvent (QResizeEvent
* arg1
) {
1319 bool absorbed
= false;
1320 int oldtop
= lua_gettop(L
);
1321 lqtL_pushudata(L
, this, "QMenu*");
1322 if (lua_getmetatable(L
, -1)) {
1323 lua_getfield(L
, -1, "resizeEvent");
1329 lqtL_pushudata(L
, arg1
, "QResizeEvent*");
1330 if (lua_isfunction(L
, -1-2)) {
1331 lua_pcall(L
, 1+1, 2, 0);
1332 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1336 lua_settop(L
, oldtop
);
1337 this->QWidget::resizeEvent(arg1
);
1339 lua_settop(L
, oldtop
);
1341 void LuaBinder
< QMenu
>::mouseReleaseEvent (QMouseEvent
* arg1
) {
1342 bool absorbed
= false;
1343 int oldtop
= lua_gettop(L
);
1344 lqtL_pushudata(L
, this, "QMenu*");
1345 if (lua_getmetatable(L
, -1)) {
1346 lua_getfield(L
, -1, "mouseReleaseEvent");
1352 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1353 if (lua_isfunction(L
, -1-2)) {
1354 lua_pcall(L
, 1+1, 2, 0);
1355 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1359 lua_settop(L
, oldtop
);
1360 this->QMenu::mouseReleaseEvent(arg1
);
1362 lua_settop(L
, oldtop
);
1364 void LuaBinder
< QMenu
>::enabledChange (bool arg1
) {
1365 bool absorbed
= false;
1366 int oldtop
= lua_gettop(L
);
1367 lqtL_pushudata(L
, this, "QMenu*");
1368 if (lua_getmetatable(L
, -1)) {
1369 lua_getfield(L
, -1, "enabledChange");
1375 lua_pushboolean(L
, arg1
);
1376 if (lua_isfunction(L
, -1-2)) {
1377 lua_pcall(L
, 1+1, 2, 0);
1378 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1382 lua_settop(L
, oldtop
);
1383 this->QWidget::enabledChange(arg1
);
1385 lua_settop(L
, oldtop
);
1387 void LuaBinder
< QMenu
>::windowActivationChange (bool arg1
) {
1388 bool absorbed
= false;
1389 int oldtop
= lua_gettop(L
);
1390 lqtL_pushudata(L
, this, "QMenu*");
1391 if (lua_getmetatable(L
, -1)) {
1392 lua_getfield(L
, -1, "windowActivationChange");
1398 lua_pushboolean(L
, arg1
);
1399 if (lua_isfunction(L
, -1-2)) {
1400 lua_pcall(L
, 1+1, 2, 0);
1401 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1405 lua_settop(L
, oldtop
);
1406 this->QWidget::windowActivationChange(arg1
);
1408 lua_settop(L
, oldtop
);
1410 int LuaBinder
< QMenu
>::heightForWidth (int arg1
) const {
1411 bool absorbed
= false;
1412 int oldtop
= lua_gettop(L
);
1413 lqtL_pushudata(L
, this, "QMenu*");
1414 if (lua_getmetatable(L
, -1)) {
1415 lua_getfield(L
, -1, "heightForWidth");
1421 lua_pushinteger(L
, arg1
);
1422 if (lua_isfunction(L
, -1-2)) {
1423 lua_pcall(L
, 1+1, 2, 0);
1424 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1428 lua_settop(L
, oldtop
);
1429 return this->QWidget::heightForWidth(arg1
);
1431 int ret
= lua_tointeger(L
, -1);
1432 lua_settop(L
, oldtop
);
1435 void LuaBinder
< QMenu
>::mouseDoubleClickEvent (QMouseEvent
* arg1
) {
1436 bool absorbed
= false;
1437 int oldtop
= lua_gettop(L
);
1438 lqtL_pushudata(L
, this, "QMenu*");
1439 if (lua_getmetatable(L
, -1)) {
1440 lua_getfield(L
, -1, "mouseDoubleClickEvent");
1446 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1447 if (lua_isfunction(L
, -1-2)) {
1448 lua_pcall(L
, 1+1, 2, 0);
1449 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1453 lua_settop(L
, oldtop
);
1454 this->QWidget::mouseDoubleClickEvent(arg1
);
1456 lua_settop(L
, oldtop
);
1458 int LuaBinder
< QMenu
>::metric (QPaintDevice::PaintDeviceMetric arg1
) const {
1459 bool absorbed
= false;
1460 int oldtop
= lua_gettop(L
);
1461 lqtL_pushudata(L
, this, "QMenu*");
1462 if (lua_getmetatable(L
, -1)) {
1463 lua_getfield(L
, -1, "metric");
1469 lqtL_pushenum(L
, arg1
, "QPaintDevice::PaintDeviceMetric");
1470 if (lua_isfunction(L
, -1-2)) {
1471 lua_pcall(L
, 1+1, 2, 0);
1472 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1476 lua_settop(L
, oldtop
);
1477 return this->QWidget::metric(arg1
);
1479 int ret
= lua_tointeger(L
, -1);
1480 lua_settop(L
, oldtop
);
1483 void LuaBinder
< QMenu
>::timerEvent (QTimerEvent
* arg1
) {
1484 bool absorbed
= false;
1485 int oldtop
= lua_gettop(L
);
1486 lqtL_pushudata(L
, this, "QMenu*");
1487 if (lua_getmetatable(L
, -1)) {
1488 lua_getfield(L
, -1, "timerEvent");
1494 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
1495 if (lua_isfunction(L
, -1-2)) {
1496 lua_pcall(L
, 1+1, 2, 0);
1497 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1501 lua_settop(L
, oldtop
);
1502 this->QMenu::timerEvent(arg1
);
1504 lua_settop(L
, oldtop
);
1506 void LuaBinder
< QMenu
>::mouseMoveEvent (QMouseEvent
* arg1
) {
1507 bool absorbed
= false;
1508 int oldtop
= lua_gettop(L
);
1509 lqtL_pushudata(L
, this, "QMenu*");
1510 if (lua_getmetatable(L
, -1)) {
1511 lua_getfield(L
, -1, "mouseMoveEvent");
1517 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1518 if (lua_isfunction(L
, -1-2)) {
1519 lua_pcall(L
, 1+1, 2, 0);
1520 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1524 lua_settop(L
, oldtop
);
1525 this->QMenu::mouseMoveEvent(arg1
);
1527 lua_settop(L
, oldtop
);
1529 void LuaBinder
< QMenu
>::focusOutEvent (QFocusEvent
* arg1
) {
1530 bool absorbed
= false;
1531 int oldtop
= lua_gettop(L
);
1532 lqtL_pushudata(L
, this, "QMenu*");
1533 if (lua_getmetatable(L
, -1)) {
1534 lua_getfield(L
, -1, "focusOutEvent");
1540 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1541 if (lua_isfunction(L
, -1-2)) {
1542 lua_pcall(L
, 1+1, 2, 0);
1543 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1547 lua_settop(L
, oldtop
);
1548 this->QWidget::focusOutEvent(arg1
);
1550 lua_settop(L
, oldtop
);
1552 void LuaBinder
< QMenu
>::childEvent (QChildEvent
* arg1
) {
1553 bool absorbed
= false;
1554 int oldtop
= lua_gettop(L
);
1555 lqtL_pushudata(L
, this, "QMenu*");
1556 if (lua_getmetatable(L
, -1)) {
1557 lua_getfield(L
, -1, "childEvent");
1563 lqtL_pushudata(L
, arg1
, "QChildEvent*");
1564 if (lua_isfunction(L
, -1-2)) {
1565 lua_pcall(L
, 1+1, 2, 0);
1566 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1570 lua_settop(L
, oldtop
);
1571 this->QObject::childEvent(arg1
);
1573 lua_settop(L
, oldtop
);
1575 void LuaBinder
< QMenu
>::connectNotify (const char * arg1
) {
1576 bool absorbed
= false;
1577 int oldtop
= lua_gettop(L
);
1578 lqtL_pushudata(L
, this, "QMenu*");
1579 if (lua_getmetatable(L
, -1)) {
1580 lua_getfield(L
, -1, "connectNotify");
1586 lua_pushstring(L
, arg1
);
1587 if (lua_isfunction(L
, -1-2)) {
1588 lua_pcall(L
, 1+1, 2, 0);
1589 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1593 lua_settop(L
, oldtop
);
1594 this->QObject::connectNotify(arg1
);
1596 lua_settop(L
, oldtop
);
1598 void LuaBinder
< QMenu
>::disconnectNotify (const char * arg1
) {
1599 bool absorbed
= false;
1600 int oldtop
= lua_gettop(L
);
1601 lqtL_pushudata(L
, this, "QMenu*");
1602 if (lua_getmetatable(L
, -1)) {
1603 lua_getfield(L
, -1, "disconnectNotify");
1609 lua_pushstring(L
, arg1
);
1610 if (lua_isfunction(L
, -1-2)) {
1611 lua_pcall(L
, 1+1, 2, 0);
1612 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1616 lua_settop(L
, oldtop
);
1617 this->QObject::disconnectNotify(arg1
);
1619 lua_settop(L
, oldtop
);
1621 void LuaBinder
< QMenu
>::fontChange (const QFont
& arg1
) {
1622 bool absorbed
= false;
1623 int oldtop
= lua_gettop(L
);
1624 lqtL_pushudata(L
, this, "QMenu*");
1625 if (lua_getmetatable(L
, -1)) {
1626 lua_getfield(L
, -1, "fontChange");
1632 lqtL_pushudata(L
, &(arg1
), "QFont*");
1633 if (lua_isfunction(L
, -1-2)) {
1634 lua_pcall(L
, 1+1, 2, 0);
1635 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1639 lua_settop(L
, oldtop
);
1640 this->QWidget::fontChange(arg1
);
1642 lua_settop(L
, oldtop
);
1644 bool LuaBinder
< QMenu
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
1645 bool absorbed
= false;
1646 int oldtop
= lua_gettop(L
);
1647 lqtL_pushudata(L
, this, "QMenu*");
1648 if (lua_getmetatable(L
, -1)) {
1649 lua_getfield(L
, -1, "eventFilter");
1655 lqtL_pushudata(L
, arg1
, "QObject*");
1656 lqtL_pushudata(L
, arg2
, "QEvent*");
1657 if (lua_isfunction(L
, -2-2)) {
1658 lua_pcall(L
, 2+1, 2, 0);
1659 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1663 lua_settop(L
, oldtop
);
1664 return this->QObject::eventFilter(arg1
, arg2
);
1666 bool ret
= (bool)lua_toboolean(L
, -1);
1667 lua_settop(L
, oldtop
);
1670 void LuaBinder
< QMenu
>::inputMethodEvent (QInputMethodEvent
* arg1
) {
1671 bool absorbed
= false;
1672 int oldtop
= lua_gettop(L
);
1673 lqtL_pushudata(L
, this, "QMenu*");
1674 if (lua_getmetatable(L
, -1)) {
1675 lua_getfield(L
, -1, "inputMethodEvent");
1681 lqtL_pushudata(L
, arg1
, "QInputMethodEvent*");
1682 if (lua_isfunction(L
, -1-2)) {
1683 lua_pcall(L
, 1+1, 2, 0);
1684 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1688 lua_settop(L
, oldtop
);
1689 this->QWidget::inputMethodEvent(arg1
);
1691 lua_settop(L
, oldtop
);
1693 void LuaBinder
< QMenu
>::wheelEvent (QWheelEvent
* arg1
) {
1694 bool absorbed
= false;
1695 int oldtop
= lua_gettop(L
);
1696 lqtL_pushudata(L
, this, "QMenu*");
1697 if (lua_getmetatable(L
, -1)) {
1698 lua_getfield(L
, -1, "wheelEvent");
1704 lqtL_pushudata(L
, arg1
, "QWheelEvent*");
1705 if (lua_isfunction(L
, -1-2)) {
1706 lua_pcall(L
, 1+1, 2, 0);
1707 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1711 lua_settop(L
, oldtop
);
1712 this->QMenu::wheelEvent(arg1
);
1714 lua_settop(L
, oldtop
);
1716 void LuaBinder
< QMenu
>::actionEvent (QActionEvent
* arg1
) {
1717 bool absorbed
= false;
1718 int oldtop
= lua_gettop(L
);
1719 lqtL_pushudata(L
, this, "QMenu*");
1720 if (lua_getmetatable(L
, -1)) {
1721 lua_getfield(L
, -1, "actionEvent");
1727 lqtL_pushudata(L
, arg1
, "QActionEvent*");
1728 if (lua_isfunction(L
, -1-2)) {
1729 lua_pcall(L
, 1+1, 2, 0);
1730 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1734 lua_settop(L
, oldtop
);
1735 this->QMenu::actionEvent(arg1
);
1737 lua_settop(L
, oldtop
);
1739 void LuaBinder
< QMenu
>::paletteChange (const QPalette
& arg1
) {
1740 bool absorbed
= false;
1741 int oldtop
= lua_gettop(L
);
1742 lqtL_pushudata(L
, this, "QMenu*");
1743 if (lua_getmetatable(L
, -1)) {
1744 lua_getfield(L
, -1, "paletteChange");
1750 lqtL_pushudata(L
, &(arg1
), "QPalette*");
1751 if (lua_isfunction(L
, -1-2)) {
1752 lua_pcall(L
, 1+1, 2, 0);
1753 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1757 lua_settop(L
, oldtop
);
1758 this->QWidget::paletteChange(arg1
);
1760 lua_settop(L
, oldtop
);
1762 void LuaBinder
< QMenu
>::languageChange () {
1763 bool absorbed
= false;
1764 int oldtop
= lua_gettop(L
);
1765 lqtL_pushudata(L
, this, "QMenu*");
1766 if (lua_getmetatable(L
, -1)) {
1767 lua_getfield(L
, -1, "languageChange");
1773 if (lua_isfunction(L
, -0-2)) {
1774 lua_pcall(L
, 0+1, 2, 0);
1775 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1779 lua_settop(L
, oldtop
);
1780 this->QWidget::languageChange();
1782 lua_settop(L
, oldtop
);
1784 bool LuaBinder
< QMenu
>::event (QEvent
* arg1
) {
1785 bool absorbed
= false;
1786 int oldtop
= lua_gettop(L
);
1787 lqtL_pushudata(L
, this, "QMenu*");
1788 if (lua_getmetatable(L
, -1)) {
1789 lua_getfield(L
, -1, "event");
1795 lqtL_pushudata(L
, arg1
, "QEvent*");
1796 if (lua_isfunction(L
, -1-2)) {
1797 lua_pcall(L
, 1+1, 2, 0);
1798 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1802 lua_settop(L
, oldtop
);
1803 return this->QMenu::event(arg1
);
1805 bool ret
= (bool)lua_toboolean(L
, -1);
1806 lua_settop(L
, oldtop
);
1809 void LuaBinder
< QMenu
>::hideEvent (QHideEvent
* arg1
) {
1810 bool absorbed
= false;
1811 int oldtop
= lua_gettop(L
);
1812 lqtL_pushudata(L
, this, "QMenu*");
1813 if (lua_getmetatable(L
, -1)) {
1814 lua_getfield(L
, -1, "hideEvent");
1820 lqtL_pushudata(L
, arg1
, "QHideEvent*");
1821 if (lua_isfunction(L
, -1-2)) {
1822 lua_pcall(L
, 1+1, 2, 0);
1823 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1827 lua_settop(L
, oldtop
);
1828 this->QMenu::hideEvent(arg1
);
1830 lua_settop(L
, oldtop
);
1832 const QMetaObject
* LuaBinder
< QMenu
>::metaObject () const {
1833 bool absorbed
= false;
1834 int oldtop
= lua_gettop(L
);
1835 lqtL_pushudata(L
, this, "QMenu*");
1836 if (lua_getmetatable(L
, -1)) {
1837 lua_getfield(L
, -1, "metaObject");
1843 if (lua_isfunction(L
, -0-2)) {
1844 lua_pcall(L
, 0+1, 2, 0);
1845 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1849 lua_settop(L
, oldtop
);
1850 return this->QMenu::metaObject();
1852 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
1853 lua_settop(L
, oldtop
);
1856 QVariant LuaBinder
< QMenu
>::inputMethodQuery (Qt::InputMethodQuery arg1
) const {
1857 bool absorbed
= false;
1858 int oldtop
= lua_gettop(L
);
1859 lqtL_pushudata(L
, this, "QMenu*");
1860 if (lua_getmetatable(L
, -1)) {
1861 lua_getfield(L
, -1, "inputMethodQuery");
1867 lqtL_pushenum(L
, arg1
, "Qt::InputMethodQuery");
1868 if (lua_isfunction(L
, -1-2)) {
1869 lua_pcall(L
, 1+1, 2, 0);
1870 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1874 lua_settop(L
, oldtop
);
1875 return this->QWidget::inputMethodQuery(arg1
);
1877 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
1878 lua_settop(L
, oldtop
);
1881 void LuaBinder
< QMenu
>::moveEvent (QMoveEvent
* arg1
) {
1882 bool absorbed
= false;
1883 int oldtop
= lua_gettop(L
);
1884 lqtL_pushudata(L
, this, "QMenu*");
1885 if (lua_getmetatable(L
, -1)) {
1886 lua_getfield(L
, -1, "moveEvent");
1892 lqtL_pushudata(L
, arg1
, "QMoveEvent*");
1893 if (lua_isfunction(L
, -1-2)) {
1894 lua_pcall(L
, 1+1, 2, 0);
1895 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1899 lua_settop(L
, oldtop
);
1900 this->QWidget::moveEvent(arg1
);
1902 lua_settop(L
, oldtop
);
1904 void LuaBinder
< QMenu
>::leaveEvent (QEvent
* arg1
) {
1905 bool absorbed
= false;
1906 int oldtop
= lua_gettop(L
);
1907 lqtL_pushudata(L
, this, "QMenu*");
1908 if (lua_getmetatable(L
, -1)) {
1909 lua_getfield(L
, -1, "leaveEvent");
1915 lqtL_pushudata(L
, arg1
, "QEvent*");
1916 if (lua_isfunction(L
, -1-2)) {
1917 lua_pcall(L
, 1+1, 2, 0);
1918 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1922 lua_settop(L
, oldtop
);
1923 this->QMenu::leaveEvent(arg1
);
1925 lua_settop(L
, oldtop
);
1927 void LuaBinder
< QMenu
>::keyReleaseEvent (QKeyEvent
* arg1
) {
1928 bool absorbed
= false;
1929 int oldtop
= lua_gettop(L
);
1930 lqtL_pushudata(L
, this, "QMenu*");
1931 if (lua_getmetatable(L
, -1)) {
1932 lua_getfield(L
, -1, "keyReleaseEvent");
1938 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
1939 if (lua_isfunction(L
, -1-2)) {
1940 lua_pcall(L
, 1+1, 2, 0);
1941 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1945 lua_settop(L
, oldtop
);
1946 this->QWidget::keyReleaseEvent(arg1
);
1948 lua_settop(L
, oldtop
);
1950 void LuaBinder
< QMenu
>::enterEvent (QEvent
* arg1
) {
1951 bool absorbed
= false;
1952 int oldtop
= lua_gettop(L
);
1953 lqtL_pushudata(L
, this, "QMenu*");
1954 if (lua_getmetatable(L
, -1)) {
1955 lua_getfield(L
, -1, "enterEvent");
1961 lqtL_pushudata(L
, arg1
, "QEvent*");
1962 if (lua_isfunction(L
, -1-2)) {
1963 lua_pcall(L
, 1+1, 2, 0);
1964 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1968 lua_settop(L
, oldtop
);
1969 this->QMenu::enterEvent(arg1
);
1971 lua_settop(L
, oldtop
);
1973 LuaBinder
< QMenu
>:: ~LuaBinder
< QMenu
> () {
1974 int oldtop
= lua_gettop(L
);
1975 lqtL_pushudata(L
, this, "QMenu*");
1976 lua_getfield(L
, -1, "~QMenu");
1978 if (lua_isfunction(L
, -1)) {
1980 lua_pcall(L
, 1, 1, 0);
1983 lua_settop(L
, oldtop
);
1985 int luaopen_QMenu (lua_State
*L
) {
1986 if (luaL_newmetatable(L
, "QMenu*")) {
1987 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__sizeHint
);
1988 lua_setfield(L
, -2, "sizeHint");
1989 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__defaultAction
);
1990 lua_setfield(L
, -2, "defaultAction");
1991 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__isTearOffMenuVisible
);
1992 lua_setfield(L
, -2, "isTearOffMenuVisible");
1993 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__isTearOffEnabled
);
1994 lua_setfield(L
, -2, "isTearOffEnabled");
1995 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__setIcon
);
1996 lua_setfield(L
, -2, "setIcon");
1997 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__trUtf8
);
1998 lua_setfield(L
, -2, "trUtf8");
1999 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__actionAt
);
2000 lua_setfield(L
, -2, "actionAt");
2001 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__icon
);
2002 lua_setfield(L
, -2, "icon");
2003 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__tr
);
2004 lua_setfield(L
, -2, "tr");
2005 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__isEmpty
);
2006 lua_setfield(L
, -2, "isEmpty");
2007 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__popup
);
2008 lua_setfield(L
, -2, "popup");
2009 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__title
);
2010 lua_setfield(L
, -2, "title");
2011 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__setDefaultAction
);
2012 lua_setfield(L
, -2, "setDefaultAction");
2013 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__setNoReplayFor
);
2014 lua_setfield(L
, -2, "setNoReplayFor");
2015 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__setSeparatorsCollapsible
);
2016 lua_setfield(L
, -2, "setSeparatorsCollapsible");
2017 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__addAction
);
2018 lua_setfield(L
, -2, "addAction");
2019 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__insertMenu
);
2020 lua_setfield(L
, -2, "insertMenu");
2021 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__clear
);
2022 lua_setfield(L
, -2, "clear");
2023 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__delete
);
2024 lua_setfield(L
, -2, "delete");
2025 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__new
);
2026 lua_setfield(L
, -2, "new");
2027 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__actionGeometry
);
2028 lua_setfield(L
, -2, "actionGeometry");
2029 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__addSeparator
);
2030 lua_setfield(L
, -2, "addSeparator");
2031 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__insertSeparator
);
2032 lua_setfield(L
, -2, "insertSeparator");
2033 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__metaObject
);
2034 lua_setfield(L
, -2, "metaObject");
2035 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__hideTearOffMenu
);
2036 lua_setfield(L
, -2, "hideTearOffMenu");
2037 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__addMenu
);
2038 lua_setfield(L
, -2, "addMenu");
2039 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__setTearOffEnabled
);
2040 lua_setfield(L
, -2, "setTearOffEnabled");
2041 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__separatorsCollapsible
);
2042 lua_setfield(L
, -2, "separatorsCollapsible");
2043 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__setActiveAction
);
2044 lua_setfield(L
, -2, "setActiveAction");
2045 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__menuAction
);
2046 lua_setfield(L
, -2, "menuAction");
2047 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__exec
);
2048 lua_setfield(L
, -2, "exec");
2049 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__setTitle
);
2050 lua_setfield(L
, -2, "setTitle");
2051 lua_pushcfunction(L
, LuaBinder
< QMenu
>::__LuaWrapCall__activeAction
);
2052 lua_setfield(L
, -2, "activeAction");
2054 lua_pushboolean(L
, 1);
2055 lua_setfield(L
, -2, "QWidget*");
2056 lua_pushboolean(L
, 0);
2057 lua_setfield(L
, -2, "QObject*");
2058 lua_pushboolean(L
, 0);
2059 lua_setfield(L
, -2, "QPaintDevice*");
2060 lua_setfield(L
, -2, "__base");
2061 lua_pushcfunction(L
, lqtL_newindex
);
2062 lua_setfield(L
, -2, "__newindex");
2063 lua_pushcfunction(L
, lqtL_index
);
2064 lua_setfield(L
, -2, "__index");
2065 lua_pushcfunction(L
, lqtL_gc
);
2066 lua_setfield(L
, -2, "__gc");
2067 lua_pushstring(L
, "QMenu");
2068 lua_setfield(L
, -2, "__qtype");
2069 lua_setglobal(L
, "QMenu");