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: 0xb8ff20;
82 score
[1] -= premium
*premium
;
84 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
87 score
[1] += premium
-1; // table: 0xf47880;
89 score
[1] -= premium
*premium
;
92 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
95 score
[2] += premium
-1; // table: 0xe520b0;
97 score
[2] -= premium
*premium
;
99 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
102 score
[2] += premium
-1; // table: 0xeee350;
104 score
[2] -= premium
*premium
;
106 if (lua_isnumber(L
, 3)) {
109 score
[2] += premium
-1; // table: 0xe52100;
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: 0xbc6160;
172 score
[1] -= premium
*premium
;
174 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
177 score
[1] += premium
-1; // table: 0x688400;
179 score
[1] -= premium
*premium
;
182 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
185 score
[2] += premium
-1; // table: 0x5e0f00;
187 score
[2] -= premium
*premium
;
189 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
192 score
[2] += premium
-1; // table: 0xdb40e0;
194 score
[2] -= premium
*premium
;
196 if (lua_isnumber(L
, 3)) {
199 score
[2] += premium
-1; // table: 0xcee3f0;
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: 0xf3f960;
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: 0xedea50;
357 score
[2] -= premium
*premium
;
359 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
362 score
[2] += premium
-1; // table: 0xf11c20;
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: 0xd89cd0;
373 score
[3] -= premium
*premium
;
375 if (lqtL_testudata(L
, 3, "QObject*")) {
378 score
[3] += premium
-1; // table: 0xd89d50;
380 score
[3] -= premium
*premium
;
382 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
385 score
[3] += premium
-1; // table: 0xc639a0;
387 score
[3] -= premium
*premium
;
389 if (lqtL_testudata(L
, 5, "QKeySequence*")) {
392 score
[3] += premium
-1; // table: 0xd8ee10;
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: 0xd98e70;
403 score
[4] -= premium
*premium
;
405 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
408 score
[4] += premium
-1; // table: 0xd98ef0;
410 score
[4] -= premium
*premium
;
412 if (lqtL_testudata(L
, 4, "QObject*")) {
415 score
[4] += premium
-1; // table: 0xd9efb0;
417 score
[4] -= premium
*premium
;
419 if ((lua_type(L
, 5)==LUA_TSTRING
)) {
422 score
[4] += premium
-1; // table: 0xd81030;
424 score
[4] -= premium
*premium
;
426 if (lqtL_testudata(L
, 6, "QKeySequence*")) {
429 score
[4] += premium
-1; // table: 0xd840b0;
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: 0xf148e0;
503 score
[1] -= premium
*premium
;
506 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
509 score
[2] += premium
-1; // table: 0xdb0dc0;
511 score
[2] -= premium
*premium
;
513 if (lqtL_testudata(L
, 2, "QWidget*")) {
516 score
[2] += premium
-1; // table: 0x725420;
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: 0xd5d500;
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: 0xc79420;
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: 0xc461b0;
653 score
[3] -= premium
*premium
;
655 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
658 score
[3] += premium
-1; // table: 0xc47760;
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: 0x7a7f10;
763 score
[2] -= premium
*premium
;
765 if (lqtL_testudata(L
, 3, "QAction*")) {
768 score
[2] += premium
-1; // table: 0x981c90;
770 score
[2] -= premium
*premium
;
773 if (lqtL_testudata(L
, 1, "QList<QAction*>*")) {
776 score
[3] += premium
-1; // table: 0x677bb0;
778 score
[3] -= premium
*premium
;
780 if (lqtL_testudata(L
, 2, "QPoint*")) {
783 score
[3] += premium
-1; // table: 0xdb6100;
785 score
[3] -= premium
*premium
;
787 if (lqtL_testudata(L
, 3, "QAction*")) {
790 score
[3] += premium
-1; // table: 0xe4d3c0;
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 const QMetaObject
* LuaBinder
< QMenu
>::metaObject () const {
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, "metaObject");
909 if (lua_isfunction(L
, -0-2)) {
910 lua_pcall(L
, 0+1, 2, 0);
911 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
915 lua_settop(L
, oldtop
);
916 return this->QMenu::metaObject();
918 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
919 lua_settop(L
, oldtop
);
922 int LuaBinder
< QMenu
>::devType () const {
923 bool absorbed
= false;
924 int oldtop
= lua_gettop(L
);
925 lqtL_pushudata(L
, this, "QMenu*");
926 if (lua_getmetatable(L
, -1)) {
927 lua_getfield(L
, -1, "devType");
933 if (lua_isfunction(L
, -0-2)) {
934 lua_pcall(L
, 0+1, 2, 0);
935 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
939 lua_settop(L
, oldtop
);
940 return this->QWidget::devType();
942 int ret
= lua_tointeger(L
, -1);
943 lua_settop(L
, oldtop
);
946 void LuaBinder
< QMenu
>::setVisible (bool arg1
) {
947 bool absorbed
= false;
948 int oldtop
= lua_gettop(L
);
949 lqtL_pushudata(L
, this, "QMenu*");
950 if (lua_getmetatable(L
, -1)) {
951 lua_getfield(L
, -1, "setVisible");
957 lua_pushboolean(L
, arg1
);
958 if (lua_isfunction(L
, -1-2)) {
959 lua_pcall(L
, 1+1, 2, 0);
960 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
964 lua_settop(L
, oldtop
);
965 this->QWidget::setVisible(arg1
);
967 lua_settop(L
, oldtop
);
969 bool LuaBinder
< QMenu
>::focusNextPrevChild (bool arg1
) {
970 bool absorbed
= false;
971 int oldtop
= lua_gettop(L
);
972 lqtL_pushudata(L
, this, "QMenu*");
973 if (lua_getmetatable(L
, -1)) {
974 lua_getfield(L
, -1, "focusNextPrevChild");
980 lua_pushboolean(L
, arg1
);
981 if (lua_isfunction(L
, -1-2)) {
982 lua_pcall(L
, 1+1, 2, 0);
983 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
987 lua_settop(L
, oldtop
);
988 return this->QMenu::focusNextPrevChild(arg1
);
990 bool ret
= (bool)lua_toboolean(L
, -1);
991 lua_settop(L
, oldtop
);
994 QPaintEngine
* LuaBinder
< QMenu
>::paintEngine () const {
995 bool absorbed
= false;
996 int oldtop
= lua_gettop(L
);
997 lqtL_pushudata(L
, this, "QMenu*");
998 if (lua_getmetatable(L
, -1)) {
999 lua_getfield(L
, -1, "paintEngine");
1005 if (lua_isfunction(L
, -0-2)) {
1006 lua_pcall(L
, 0+1, 2, 0);
1007 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1011 lua_settop(L
, oldtop
);
1012 return this->QWidget::paintEngine();
1014 QPaintEngine
* ret
= *static_cast<QPaintEngine
**>(lqtL_checkudata(L
, -1, "QPaintEngine*"));
1015 lua_settop(L
, oldtop
);
1018 void LuaBinder
< QMenu
>::dragLeaveEvent (QDragLeaveEvent
* arg1
) {
1019 bool absorbed
= false;
1020 int oldtop
= lua_gettop(L
);
1021 lqtL_pushudata(L
, this, "QMenu*");
1022 if (lua_getmetatable(L
, -1)) {
1023 lua_getfield(L
, -1, "dragLeaveEvent");
1029 lqtL_pushudata(L
, arg1
, "QDragLeaveEvent*");
1030 if (lua_isfunction(L
, -1-2)) {
1031 lua_pcall(L
, 1+1, 2, 0);
1032 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1036 lua_settop(L
, oldtop
);
1037 this->QWidget::dragLeaveEvent(arg1
);
1039 lua_settop(L
, oldtop
);
1041 void LuaBinder
< QMenu
>::mousePressEvent (QMouseEvent
* arg1
) {
1042 bool absorbed
= false;
1043 int oldtop
= lua_gettop(L
);
1044 lqtL_pushudata(L
, this, "QMenu*");
1045 if (lua_getmetatable(L
, -1)) {
1046 lua_getfield(L
, -1, "mousePressEvent");
1052 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1053 if (lua_isfunction(L
, -1-2)) {
1054 lua_pcall(L
, 1+1, 2, 0);
1055 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1059 lua_settop(L
, oldtop
);
1060 this->QMenu::mousePressEvent(arg1
);
1062 lua_settop(L
, oldtop
);
1064 QSize LuaBinder
< QMenu
>::sizeHint () const {
1065 bool absorbed
= false;
1066 int oldtop
= lua_gettop(L
);
1067 lqtL_pushudata(L
, this, "QMenu*");
1068 if (lua_getmetatable(L
, -1)) {
1069 lua_getfield(L
, -1, "sizeHint");
1075 if (lua_isfunction(L
, -0-2)) {
1076 lua_pcall(L
, 0+1, 2, 0);
1077 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1081 lua_settop(L
, oldtop
);
1082 return this->QMenu::sizeHint();
1084 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1085 lua_settop(L
, oldtop
);
1088 void LuaBinder
< QMenu
>::changeEvent (QEvent
* arg1
) {
1089 bool absorbed
= false;
1090 int oldtop
= lua_gettop(L
);
1091 lqtL_pushudata(L
, this, "QMenu*");
1092 if (lua_getmetatable(L
, -1)) {
1093 lua_getfield(L
, -1, "changeEvent");
1099 lqtL_pushudata(L
, arg1
, "QEvent*");
1100 if (lua_isfunction(L
, -1-2)) {
1101 lua_pcall(L
, 1+1, 2, 0);
1102 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1106 lua_settop(L
, oldtop
);
1107 this->QMenu::changeEvent(arg1
);
1109 lua_settop(L
, oldtop
);
1111 void LuaBinder
< QMenu
>::tabletEvent (QTabletEvent
* arg1
) {
1112 bool absorbed
= false;
1113 int oldtop
= lua_gettop(L
);
1114 lqtL_pushudata(L
, this, "QMenu*");
1115 if (lua_getmetatable(L
, -1)) {
1116 lua_getfield(L
, -1, "tabletEvent");
1122 lqtL_pushudata(L
, arg1
, "QTabletEvent*");
1123 if (lua_isfunction(L
, -1-2)) {
1124 lua_pcall(L
, 1+1, 2, 0);
1125 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1129 lua_settop(L
, oldtop
);
1130 this->QWidget::tabletEvent(arg1
);
1132 lua_settop(L
, oldtop
);
1134 void LuaBinder
< QMenu
>::customEvent (QEvent
* arg1
) {
1135 bool absorbed
= false;
1136 int oldtop
= lua_gettop(L
);
1137 lqtL_pushudata(L
, this, "QMenu*");
1138 if (lua_getmetatable(L
, -1)) {
1139 lua_getfield(L
, -1, "customEvent");
1145 lqtL_pushudata(L
, arg1
, "QEvent*");
1146 if (lua_isfunction(L
, -1-2)) {
1147 lua_pcall(L
, 1+1, 2, 0);
1148 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1152 lua_settop(L
, oldtop
);
1153 this->QObject::customEvent(arg1
);
1155 lua_settop(L
, oldtop
);
1157 void LuaBinder
< QMenu
>::dropEvent (QDropEvent
* arg1
) {
1158 bool absorbed
= false;
1159 int oldtop
= lua_gettop(L
);
1160 lqtL_pushudata(L
, this, "QMenu*");
1161 if (lua_getmetatable(L
, -1)) {
1162 lua_getfield(L
, -1, "dropEvent");
1168 lqtL_pushudata(L
, arg1
, "QDropEvent*");
1169 if (lua_isfunction(L
, -1-2)) {
1170 lua_pcall(L
, 1+1, 2, 0);
1171 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1175 lua_settop(L
, oldtop
);
1176 this->QWidget::dropEvent(arg1
);
1178 lua_settop(L
, oldtop
);
1180 QSize LuaBinder
< QMenu
>::minimumSizeHint () const {
1181 bool absorbed
= false;
1182 int oldtop
= lua_gettop(L
);
1183 lqtL_pushudata(L
, this, "QMenu*");
1184 if (lua_getmetatable(L
, -1)) {
1185 lua_getfield(L
, -1, "minimumSizeHint");
1191 if (lua_isfunction(L
, -0-2)) {
1192 lua_pcall(L
, 0+1, 2, 0);
1193 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1197 lua_settop(L
, oldtop
);
1198 return this->QWidget::minimumSizeHint();
1200 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1201 lua_settop(L
, oldtop
);
1204 void LuaBinder
< QMenu
>::windowActivationChange (bool arg1
) {
1205 bool absorbed
= false;
1206 int oldtop
= lua_gettop(L
);
1207 lqtL_pushudata(L
, this, "QMenu*");
1208 if (lua_getmetatable(L
, -1)) {
1209 lua_getfield(L
, -1, "windowActivationChange");
1215 lua_pushboolean(L
, arg1
);
1216 if (lua_isfunction(L
, -1-2)) {
1217 lua_pcall(L
, 1+1, 2, 0);
1218 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1222 lua_settop(L
, oldtop
);
1223 this->QWidget::windowActivationChange(arg1
);
1225 lua_settop(L
, oldtop
);
1227 void LuaBinder
< QMenu
>::keyReleaseEvent (QKeyEvent
* arg1
) {
1228 bool absorbed
= false;
1229 int oldtop
= lua_gettop(L
);
1230 lqtL_pushudata(L
, this, "QMenu*");
1231 if (lua_getmetatable(L
, -1)) {
1232 lua_getfield(L
, -1, "keyReleaseEvent");
1238 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
1239 if (lua_isfunction(L
, -1-2)) {
1240 lua_pcall(L
, 1+1, 2, 0);
1241 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1245 lua_settop(L
, oldtop
);
1246 this->QWidget::keyReleaseEvent(arg1
);
1248 lua_settop(L
, oldtop
);
1250 void LuaBinder
< QMenu
>::showEvent (QShowEvent
* arg1
) {
1251 bool absorbed
= false;
1252 int oldtop
= lua_gettop(L
);
1253 lqtL_pushudata(L
, this, "QMenu*");
1254 if (lua_getmetatable(L
, -1)) {
1255 lua_getfield(L
, -1, "showEvent");
1261 lqtL_pushudata(L
, arg1
, "QShowEvent*");
1262 if (lua_isfunction(L
, -1-2)) {
1263 lua_pcall(L
, 1+1, 2, 0);
1264 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1268 lua_settop(L
, oldtop
);
1269 this->QWidget::showEvent(arg1
);
1271 lua_settop(L
, oldtop
);
1273 void LuaBinder
< QMenu
>::mouseDoubleClickEvent (QMouseEvent
* arg1
) {
1274 bool absorbed
= false;
1275 int oldtop
= lua_gettop(L
);
1276 lqtL_pushudata(L
, this, "QMenu*");
1277 if (lua_getmetatable(L
, -1)) {
1278 lua_getfield(L
, -1, "mouseDoubleClickEvent");
1284 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1285 if (lua_isfunction(L
, -1-2)) {
1286 lua_pcall(L
, 1+1, 2, 0);
1287 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1291 lua_settop(L
, oldtop
);
1292 this->QWidget::mouseDoubleClickEvent(arg1
);
1294 lua_settop(L
, oldtop
);
1296 void LuaBinder
< QMenu
>::paintEvent (QPaintEvent
* arg1
) {
1297 bool absorbed
= false;
1298 int oldtop
= lua_gettop(L
);
1299 lqtL_pushudata(L
, this, "QMenu*");
1300 if (lua_getmetatable(L
, -1)) {
1301 lua_getfield(L
, -1, "paintEvent");
1307 lqtL_pushudata(L
, arg1
, "QPaintEvent*");
1308 if (lua_isfunction(L
, -1-2)) {
1309 lua_pcall(L
, 1+1, 2, 0);
1310 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1314 lua_settop(L
, oldtop
);
1315 this->QMenu::paintEvent(arg1
);
1317 lua_settop(L
, oldtop
);
1319 void LuaBinder
< QMenu
>::dragMoveEvent (QDragMoveEvent
* arg1
) {
1320 bool absorbed
= false;
1321 int oldtop
= lua_gettop(L
);
1322 lqtL_pushudata(L
, this, "QMenu*");
1323 if (lua_getmetatable(L
, -1)) {
1324 lua_getfield(L
, -1, "dragMoveEvent");
1330 lqtL_pushudata(L
, arg1
, "QDragMoveEvent*");
1331 if (lua_isfunction(L
, -1-2)) {
1332 lua_pcall(L
, 1+1, 2, 0);
1333 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1337 lua_settop(L
, oldtop
);
1338 this->QWidget::dragMoveEvent(arg1
);
1340 lua_settop(L
, oldtop
);
1342 void LuaBinder
< QMenu
>::contextMenuEvent (QContextMenuEvent
* arg1
) {
1343 bool absorbed
= false;
1344 int oldtop
= lua_gettop(L
);
1345 lqtL_pushudata(L
, this, "QMenu*");
1346 if (lua_getmetatable(L
, -1)) {
1347 lua_getfield(L
, -1, "contextMenuEvent");
1353 lqtL_pushudata(L
, arg1
, "QContextMenuEvent*");
1354 if (lua_isfunction(L
, -1-2)) {
1355 lua_pcall(L
, 1+1, 2, 0);
1356 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1360 lua_settop(L
, oldtop
);
1361 this->QWidget::contextMenuEvent(arg1
);
1363 lua_settop(L
, oldtop
);
1365 void LuaBinder
< QMenu
>::enabledChange (bool arg1
) {
1366 bool absorbed
= false;
1367 int oldtop
= lua_gettop(L
);
1368 lqtL_pushudata(L
, this, "QMenu*");
1369 if (lua_getmetatable(L
, -1)) {
1370 lua_getfield(L
, -1, "enabledChange");
1376 lua_pushboolean(L
, arg1
);
1377 if (lua_isfunction(L
, -1-2)) {
1378 lua_pcall(L
, 1+1, 2, 0);
1379 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1383 lua_settop(L
, oldtop
);
1384 this->QWidget::enabledChange(arg1
);
1386 lua_settop(L
, oldtop
);
1388 void LuaBinder
< QMenu
>::resizeEvent (QResizeEvent
* arg1
) {
1389 bool absorbed
= false;
1390 int oldtop
= lua_gettop(L
);
1391 lqtL_pushudata(L
, this, "QMenu*");
1392 if (lua_getmetatable(L
, -1)) {
1393 lua_getfield(L
, -1, "resizeEvent");
1399 lqtL_pushudata(L
, arg1
, "QResizeEvent*");
1400 if (lua_isfunction(L
, -1-2)) {
1401 lua_pcall(L
, 1+1, 2, 0);
1402 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1406 lua_settop(L
, oldtop
);
1407 this->QWidget::resizeEvent(arg1
);
1409 lua_settop(L
, oldtop
);
1411 int LuaBinder
< QMenu
>::heightForWidth (int arg1
) const {
1412 bool absorbed
= false;
1413 int oldtop
= lua_gettop(L
);
1414 lqtL_pushudata(L
, this, "QMenu*");
1415 if (lua_getmetatable(L
, -1)) {
1416 lua_getfield(L
, -1, "heightForWidth");
1422 lua_pushinteger(L
, arg1
);
1423 if (lua_isfunction(L
, -1-2)) {
1424 lua_pcall(L
, 1+1, 2, 0);
1425 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1429 lua_settop(L
, oldtop
);
1430 return this->QWidget::heightForWidth(arg1
);
1432 int ret
= lua_tointeger(L
, -1);
1433 lua_settop(L
, oldtop
);
1436 void LuaBinder
< QMenu
>::fontChange (const QFont
& arg1
) {
1437 bool absorbed
= false;
1438 int oldtop
= lua_gettop(L
);
1439 lqtL_pushudata(L
, this, "QMenu*");
1440 if (lua_getmetatable(L
, -1)) {
1441 lua_getfield(L
, -1, "fontChange");
1447 lqtL_pushudata(L
, &(arg1
), "QFont*");
1448 if (lua_isfunction(L
, -1-2)) {
1449 lua_pcall(L
, 1+1, 2, 0);
1450 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1454 lua_settop(L
, oldtop
);
1455 this->QWidget::fontChange(arg1
);
1457 lua_settop(L
, oldtop
);
1459 void LuaBinder
< QMenu
>::mouseReleaseEvent (QMouseEvent
* arg1
) {
1460 bool absorbed
= false;
1461 int oldtop
= lua_gettop(L
);
1462 lqtL_pushudata(L
, this, "QMenu*");
1463 if (lua_getmetatable(L
, -1)) {
1464 lua_getfield(L
, -1, "mouseReleaseEvent");
1470 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1471 if (lua_isfunction(L
, -1-2)) {
1472 lua_pcall(L
, 1+1, 2, 0);
1473 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1477 lua_settop(L
, oldtop
);
1478 this->QMenu::mouseReleaseEvent(arg1
);
1480 lua_settop(L
, oldtop
);
1482 void LuaBinder
< QMenu
>::timerEvent (QTimerEvent
* arg1
) {
1483 bool absorbed
= false;
1484 int oldtop
= lua_gettop(L
);
1485 lqtL_pushudata(L
, this, "QMenu*");
1486 if (lua_getmetatable(L
, -1)) {
1487 lua_getfield(L
, -1, "timerEvent");
1493 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
1494 if (lua_isfunction(L
, -1-2)) {
1495 lua_pcall(L
, 1+1, 2, 0);
1496 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1500 lua_settop(L
, oldtop
);
1501 this->QMenu::timerEvent(arg1
);
1503 lua_settop(L
, oldtop
);
1505 void LuaBinder
< QMenu
>::mouseMoveEvent (QMouseEvent
* arg1
) {
1506 bool absorbed
= false;
1507 int oldtop
= lua_gettop(L
);
1508 lqtL_pushudata(L
, this, "QMenu*");
1509 if (lua_getmetatable(L
, -1)) {
1510 lua_getfield(L
, -1, "mouseMoveEvent");
1516 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1517 if (lua_isfunction(L
, -1-2)) {
1518 lua_pcall(L
, 1+1, 2, 0);
1519 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1523 lua_settop(L
, oldtop
);
1524 this->QMenu::mouseMoveEvent(arg1
);
1526 lua_settop(L
, oldtop
);
1528 void LuaBinder
< QMenu
>::disconnectNotify (const char * arg1
) {
1529 bool absorbed
= false;
1530 int oldtop
= lua_gettop(L
);
1531 lqtL_pushudata(L
, this, "QMenu*");
1532 if (lua_getmetatable(L
, -1)) {
1533 lua_getfield(L
, -1, "disconnectNotify");
1539 lua_pushstring(L
, arg1
);
1540 if (lua_isfunction(L
, -1-2)) {
1541 lua_pcall(L
, 1+1, 2, 0);
1542 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1546 lua_settop(L
, oldtop
);
1547 this->QObject::disconnectNotify(arg1
);
1549 lua_settop(L
, oldtop
);
1551 void LuaBinder
< QMenu
>::childEvent (QChildEvent
* arg1
) {
1552 bool absorbed
= false;
1553 int oldtop
= lua_gettop(L
);
1554 lqtL_pushudata(L
, this, "QMenu*");
1555 if (lua_getmetatable(L
, -1)) {
1556 lua_getfield(L
, -1, "childEvent");
1562 lqtL_pushudata(L
, arg1
, "QChildEvent*");
1563 if (lua_isfunction(L
, -1-2)) {
1564 lua_pcall(L
, 1+1, 2, 0);
1565 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1569 lua_settop(L
, oldtop
);
1570 this->QObject::childEvent(arg1
);
1572 lua_settop(L
, oldtop
);
1574 void LuaBinder
< QMenu
>::focusOutEvent (QFocusEvent
* arg1
) {
1575 bool absorbed
= false;
1576 int oldtop
= lua_gettop(L
);
1577 lqtL_pushudata(L
, this, "QMenu*");
1578 if (lua_getmetatable(L
, -1)) {
1579 lua_getfield(L
, -1, "focusOutEvent");
1585 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1586 if (lua_isfunction(L
, -1-2)) {
1587 lua_pcall(L
, 1+1, 2, 0);
1588 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1592 lua_settop(L
, oldtop
);
1593 this->QWidget::focusOutEvent(arg1
);
1595 lua_settop(L
, oldtop
);
1597 int LuaBinder
< QMenu
>::metric (QPaintDevice::PaintDeviceMetric arg1
) const {
1598 bool absorbed
= false;
1599 int oldtop
= lua_gettop(L
);
1600 lqtL_pushudata(L
, this, "QMenu*");
1601 if (lua_getmetatable(L
, -1)) {
1602 lua_getfield(L
, -1, "metric");
1608 lqtL_pushenum(L
, arg1
, "QPaintDevice::PaintDeviceMetric");
1609 if (lua_isfunction(L
, -1-2)) {
1610 lua_pcall(L
, 1+1, 2, 0);
1611 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1615 lua_settop(L
, oldtop
);
1616 return this->QWidget::metric(arg1
);
1618 int ret
= lua_tointeger(L
, -1);
1619 lua_settop(L
, oldtop
);
1622 void LuaBinder
< QMenu
>::connectNotify (const char * arg1
) {
1623 bool absorbed
= false;
1624 int oldtop
= lua_gettop(L
);
1625 lqtL_pushudata(L
, this, "QMenu*");
1626 if (lua_getmetatable(L
, -1)) {
1627 lua_getfield(L
, -1, "connectNotify");
1633 lua_pushstring(L
, arg1
);
1634 if (lua_isfunction(L
, -1-2)) {
1635 lua_pcall(L
, 1+1, 2, 0);
1636 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1640 lua_settop(L
, oldtop
);
1641 this->QObject::connectNotify(arg1
);
1643 lua_settop(L
, oldtop
);
1645 bool LuaBinder
< QMenu
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
1646 bool absorbed
= false;
1647 int oldtop
= lua_gettop(L
);
1648 lqtL_pushudata(L
, this, "QMenu*");
1649 if (lua_getmetatable(L
, -1)) {
1650 lua_getfield(L
, -1, "eventFilter");
1656 lqtL_pushudata(L
, arg1
, "QObject*");
1657 lqtL_pushudata(L
, arg2
, "QEvent*");
1658 if (lua_isfunction(L
, -2-2)) {
1659 lua_pcall(L
, 2+1, 2, 0);
1660 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1664 lua_settop(L
, oldtop
);
1665 return this->QObject::eventFilter(arg1
, arg2
);
1667 bool ret
= (bool)lua_toboolean(L
, -1);
1668 lua_settop(L
, oldtop
);
1671 void LuaBinder
< QMenu
>::inputMethodEvent (QInputMethodEvent
* arg1
) {
1672 bool absorbed
= false;
1673 int oldtop
= lua_gettop(L
);
1674 lqtL_pushudata(L
, this, "QMenu*");
1675 if (lua_getmetatable(L
, -1)) {
1676 lua_getfield(L
, -1, "inputMethodEvent");
1682 lqtL_pushudata(L
, arg1
, "QInputMethodEvent*");
1683 if (lua_isfunction(L
, -1-2)) {
1684 lua_pcall(L
, 1+1, 2, 0);
1685 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1689 lua_settop(L
, oldtop
);
1690 this->QWidget::inputMethodEvent(arg1
);
1692 lua_settop(L
, oldtop
);
1694 void LuaBinder
< QMenu
>::wheelEvent (QWheelEvent
* arg1
) {
1695 bool absorbed
= false;
1696 int oldtop
= lua_gettop(L
);
1697 lqtL_pushudata(L
, this, "QMenu*");
1698 if (lua_getmetatable(L
, -1)) {
1699 lua_getfield(L
, -1, "wheelEvent");
1705 lqtL_pushudata(L
, arg1
, "QWheelEvent*");
1706 if (lua_isfunction(L
, -1-2)) {
1707 lua_pcall(L
, 1+1, 2, 0);
1708 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1712 lua_settop(L
, oldtop
);
1713 this->QMenu::wheelEvent(arg1
);
1715 lua_settop(L
, oldtop
);
1717 void LuaBinder
< QMenu
>::actionEvent (QActionEvent
* arg1
) {
1718 bool absorbed
= false;
1719 int oldtop
= lua_gettop(L
);
1720 lqtL_pushudata(L
, this, "QMenu*");
1721 if (lua_getmetatable(L
, -1)) {
1722 lua_getfield(L
, -1, "actionEvent");
1728 lqtL_pushudata(L
, arg1
, "QActionEvent*");
1729 if (lua_isfunction(L
, -1-2)) {
1730 lua_pcall(L
, 1+1, 2, 0);
1731 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1735 lua_settop(L
, oldtop
);
1736 this->QMenu::actionEvent(arg1
);
1738 lua_settop(L
, oldtop
);
1740 void LuaBinder
< QMenu
>::paletteChange (const QPalette
& arg1
) {
1741 bool absorbed
= false;
1742 int oldtop
= lua_gettop(L
);
1743 lqtL_pushudata(L
, this, "QMenu*");
1744 if (lua_getmetatable(L
, -1)) {
1745 lua_getfield(L
, -1, "paletteChange");
1751 lqtL_pushudata(L
, &(arg1
), "QPalette*");
1752 if (lua_isfunction(L
, -1-2)) {
1753 lua_pcall(L
, 1+1, 2, 0);
1754 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1758 lua_settop(L
, oldtop
);
1759 this->QWidget::paletteChange(arg1
);
1761 lua_settop(L
, oldtop
);
1763 void LuaBinder
< QMenu
>::languageChange () {
1764 bool absorbed
= false;
1765 int oldtop
= lua_gettop(L
);
1766 lqtL_pushudata(L
, this, "QMenu*");
1767 if (lua_getmetatable(L
, -1)) {
1768 lua_getfield(L
, -1, "languageChange");
1774 if (lua_isfunction(L
, -0-2)) {
1775 lua_pcall(L
, 0+1, 2, 0);
1776 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1780 lua_settop(L
, oldtop
);
1781 this->QWidget::languageChange();
1783 lua_settop(L
, oldtop
);
1785 bool LuaBinder
< QMenu
>::event (QEvent
* arg1
) {
1786 bool absorbed
= false;
1787 int oldtop
= lua_gettop(L
);
1788 lqtL_pushudata(L
, this, "QMenu*");
1789 if (lua_getmetatable(L
, -1)) {
1790 lua_getfield(L
, -1, "event");
1796 lqtL_pushudata(L
, arg1
, "QEvent*");
1797 if (lua_isfunction(L
, -1-2)) {
1798 lua_pcall(L
, 1+1, 2, 0);
1799 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1803 lua_settop(L
, oldtop
);
1804 return this->QMenu::event(arg1
);
1806 bool ret
= (bool)lua_toboolean(L
, -1);
1807 lua_settop(L
, oldtop
);
1810 void LuaBinder
< QMenu
>::hideEvent (QHideEvent
* arg1
) {
1811 bool absorbed
= false;
1812 int oldtop
= lua_gettop(L
);
1813 lqtL_pushudata(L
, this, "QMenu*");
1814 if (lua_getmetatable(L
, -1)) {
1815 lua_getfield(L
, -1, "hideEvent");
1821 lqtL_pushudata(L
, arg1
, "QHideEvent*");
1822 if (lua_isfunction(L
, -1-2)) {
1823 lua_pcall(L
, 1+1, 2, 0);
1824 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1828 lua_settop(L
, oldtop
);
1829 this->QMenu::hideEvent(arg1
);
1831 lua_settop(L
, oldtop
);
1833 void LuaBinder
< QMenu
>::dragEnterEvent (QDragEnterEvent
* arg1
) {
1834 bool absorbed
= false;
1835 int oldtop
= lua_gettop(L
);
1836 lqtL_pushudata(L
, this, "QMenu*");
1837 if (lua_getmetatable(L
, -1)) {
1838 lua_getfield(L
, -1, "dragEnterEvent");
1844 lqtL_pushudata(L
, arg1
, "QDragEnterEvent*");
1845 if (lua_isfunction(L
, -1-2)) {
1846 lua_pcall(L
, 1+1, 2, 0);
1847 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1851 lua_settop(L
, oldtop
);
1852 this->QWidget::dragEnterEvent(arg1
);
1854 lua_settop(L
, oldtop
);
1856 void LuaBinder
< QMenu
>::moveEvent (QMoveEvent
* arg1
) {
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, "moveEvent");
1867 lqtL_pushudata(L
, arg1
, "QMoveEvent*");
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 this->QWidget::moveEvent(arg1
);
1877 lua_settop(L
, oldtop
);
1879 void LuaBinder
< QMenu
>::closeEvent (QCloseEvent
* arg1
) {
1880 bool absorbed
= false;
1881 int oldtop
= lua_gettop(L
);
1882 lqtL_pushudata(L
, this, "QMenu*");
1883 if (lua_getmetatable(L
, -1)) {
1884 lua_getfield(L
, -1, "closeEvent");
1890 lqtL_pushudata(L
, arg1
, "QCloseEvent*");
1891 if (lua_isfunction(L
, -1-2)) {
1892 lua_pcall(L
, 1+1, 2, 0);
1893 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1897 lua_settop(L
, oldtop
);
1898 this->QWidget::closeEvent(arg1
);
1900 lua_settop(L
, oldtop
);
1902 void LuaBinder
< QMenu
>::leaveEvent (QEvent
* arg1
) {
1903 bool absorbed
= false;
1904 int oldtop
= lua_gettop(L
);
1905 lqtL_pushudata(L
, this, "QMenu*");
1906 if (lua_getmetatable(L
, -1)) {
1907 lua_getfield(L
, -1, "leaveEvent");
1913 lqtL_pushudata(L
, arg1
, "QEvent*");
1914 if (lua_isfunction(L
, -1-2)) {
1915 lua_pcall(L
, 1+1, 2, 0);
1916 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1920 lua_settop(L
, oldtop
);
1921 this->QMenu::leaveEvent(arg1
);
1923 lua_settop(L
, oldtop
);
1925 QVariant LuaBinder
< QMenu
>::inputMethodQuery (Qt::InputMethodQuery arg1
) const {
1926 bool absorbed
= false;
1927 int oldtop
= lua_gettop(L
);
1928 lqtL_pushudata(L
, this, "QMenu*");
1929 if (lua_getmetatable(L
, -1)) {
1930 lua_getfield(L
, -1, "inputMethodQuery");
1936 lqtL_pushenum(L
, arg1
, "Qt::InputMethodQuery");
1937 if (lua_isfunction(L
, -1-2)) {
1938 lua_pcall(L
, 1+1, 2, 0);
1939 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1943 lua_settop(L
, oldtop
);
1944 return this->QWidget::inputMethodQuery(arg1
);
1946 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
1947 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");