1 #include "lqt_bind_QObject.hpp"
3 int LuaBinder
< QObject
>::__LuaWrapCall__parent (lua_State
*L
) {
4 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 QObject
* ret
= __lua__obj
->QObject::parent();
11 lqtL_pushudata(L
, ret
, "QObject*");
14 int LuaBinder
< QObject
>::__LuaWrapCall__signalsBlocked (lua_State
*L
) {
15 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
17 lua_pushstring(L
, "trying to reference deleted pointer");
21 bool ret
= __lua__obj
->QObject::signalsBlocked();
22 lua_pushboolean(L
, ret
);
25 int LuaBinder
< QObject
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
26 const char * arg1
= lua_tostring(L
, 1);
27 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
28 QString ret
= QObject::trUtf8(arg1
, arg2
);
29 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
32 int LuaBinder
< QObject
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
33 const char * arg1
= lua_tostring(L
, 1);
34 const char * arg2
= lua_tostring(L
, 2);
35 int arg3
= lua_tointeger(L
, 3);
36 QString ret
= QObject::trUtf8(arg1
, arg2
, arg3
);
37 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
40 int LuaBinder
< QObject
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
42 const int premium
= 11+lua_gettop(L
);
44 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
47 score
[1] += premium
-1; // table: 0xd13c40;
49 score
[1] -= premium
*premium
;
51 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
54 score
[1] += premium
-1; // table: 0xd137a0;
56 score
[1] -= premium
*premium
;
59 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
62 score
[2] += premium
-1; // table: 0xd15a30;
64 score
[2] -= premium
*premium
;
66 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
69 score
[2] += premium
-1; // table: 0xd15160;
71 score
[2] -= premium
*premium
;
73 if (lua_isnumber(L
, 3)) {
76 score
[2] += premium
-1; // table: 0xd15ec0;
78 score
[2] -= premium
*premium
;
81 for (int i
=1;i
<=2;i
++) {
82 if (score
[best
] < score
[i
]) { best
= i
; }
85 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
86 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
88 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
92 int LuaBinder
< QObject
>::__LuaWrapCall__killTimer (lua_State
*L
) {
93 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
95 lua_pushstring(L
, "trying to reference deleted pointer");
99 int arg1
= lua_tointeger(L
, 2);
100 __lua__obj
->QObject::killTimer(arg1
);
103 int LuaBinder
< QObject
>::__LuaWrapCall__dumpObjectTree (lua_State
*L
) {
104 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
106 lua_pushstring(L
, "trying to reference deleted pointer");
110 __lua__obj
->QObject::dumpObjectTree();
113 int LuaBinder
< QObject
>::__LuaWrapCall__dumpObjectInfo (lua_State
*L
) {
114 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
116 lua_pushstring(L
, "trying to reference deleted pointer");
120 __lua__obj
->QObject::dumpObjectInfo();
123 int LuaBinder
< QObject
>::__LuaWrapCall__event (lua_State
*L
) {
124 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
126 lua_pushstring(L
, "trying to reference deleted pointer");
130 QEvent
* arg1
= *static_cast<QEvent
**>(lqtL_checkudata(L
, 2, "QEvent*"));
131 bool ret
= __lua__obj
->QObject::event(arg1
);
132 lua_pushboolean(L
, ret
);
135 int LuaBinder
< QObject
>::__LuaWrapCall__installEventFilter (lua_State
*L
) {
136 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
138 lua_pushstring(L
, "trying to reference deleted pointer");
142 QObject
* arg1
= *static_cast<QObject
**>(lqtL_checkudata(L
, 2, "QObject*"));
143 __lua__obj
->QObject::installEventFilter(arg1
);
146 int LuaBinder
< QObject
>::__LuaWrapCall__inherits (lua_State
*L
) {
147 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
149 lua_pushstring(L
, "trying to reference deleted pointer");
153 const char * arg1
= lua_tostring(L
, 2);
154 bool ret
= __lua__obj
->QObject::inherits(arg1
);
155 lua_pushboolean(L
, ret
);
158 int LuaBinder
< QObject
>::__LuaWrapCall__registerUserData (lua_State
*L
) {
159 unsigned int ret
= QObject::registerUserData();
160 lua_pushinteger(L
, ret
);
163 int LuaBinder
< QObject
>::__LuaWrapCall__dynamicPropertyNames (lua_State
*L
) {
164 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
166 lua_pushstring(L
, "trying to reference deleted pointer");
170 QList
<QByteArray
> ret
= __lua__obj
->QObject::dynamicPropertyNames();
171 lqtL_passudata(L
, new QList
<QByteArray
>(ret
), "QList<QByteArray>*");
174 int LuaBinder
< QObject
>::__LuaWrapCall__connect__OverloadedVersion__1 (lua_State
*L
) {
175 const QObject
* arg1
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
176 const char * arg2
= lua_tostring(L
, 2);
177 const QObject
* arg3
= *static_cast<QObject
**>(lqtL_checkudata(L
, 3, "QObject*"));
178 const char * arg4
= lua_tostring(L
, 4);
179 Qt::ConnectionType arg5
= lqtL_isenum(L
, 5, "Qt::ConnectionType")?static_cast<Qt::ConnectionType
>(lqtL_toenum(L
, 5, "Qt::ConnectionType")):Qt::AutoConnection
;
180 bool ret
= QObject::connect(arg1
, arg2
, arg3
, arg4
, arg5
);
181 lua_pushboolean(L
, ret
);
184 int LuaBinder
< QObject
>::__LuaWrapCall__connect__OverloadedVersion__2 (lua_State
*L
) {
185 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
187 lua_pushstring(L
, "trying to reference deleted pointer");
191 const QObject
* arg1
= *static_cast<QObject
**>(lqtL_checkudata(L
, 2, "QObject*"));
192 const char * arg2
= lua_tostring(L
, 3);
193 const char * arg3
= lua_tostring(L
, 4);
194 Qt::ConnectionType arg4
= lqtL_isenum(L
, 5, "Qt::ConnectionType")?static_cast<Qt::ConnectionType
>(lqtL_toenum(L
, 5, "Qt::ConnectionType")):Qt::AutoConnection
;
195 bool ret
= __lua__obj
->QObject::connect(arg1
, arg2
, arg3
, arg4
);
196 lua_pushboolean(L
, ret
);
199 int LuaBinder
< QObject
>::__LuaWrapCall__connect (lua_State
*L
) {
201 const int premium
= 11+lua_gettop(L
);
203 if (lqtL_testudata(L
, 1, "QObject*")) {
206 score
[1] += premium
-1; // table: 0xd22980;
208 score
[1] -= premium
*premium
;
210 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
213 score
[1] += premium
-1; // table: 0xd22650;
215 score
[1] -= premium
*premium
;
217 if (lqtL_testudata(L
, 3, "QObject*")) {
220 score
[1] += premium
-1; // table: 0xd22e30;
222 score
[1] -= premium
*premium
;
224 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
227 score
[1] += premium
-1; // table: 0xd23690;
229 score
[1] -= premium
*premium
;
231 if (lqtL_isenum(L
, 5, "Qt::ConnectionType")) {
234 score
[1] += premium
-1; // table: 0xd23a40;
236 score
[1] -= premium
*premium
;
239 score
[2] += lqtL_testudata(L
, 1, "QObject*")?premium
:-premium
*premium
;
240 if (lqtL_testudata(L
, 2, "QObject*")) {
243 score
[2] += premium
-1; // table: 0xd24460;
245 score
[2] -= premium
*premium
;
247 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
250 score
[2] += premium
-1; // table: 0xd23630;
252 score
[2] -= premium
*premium
;
254 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
257 score
[2] += premium
-1; // table: 0xd24970;
259 score
[2] -= premium
*premium
;
261 if (lqtL_isenum(L
, 5, "Qt::ConnectionType")) {
264 score
[2] += premium
-1; // table: 0xd25290;
266 score
[2] -= premium
*premium
;
269 for (int i
=1;i
<=2;i
++) {
270 if (score
[best
] < score
[i
]) { best
= i
; }
273 case 1: return __LuaWrapCall__connect__OverloadedVersion__1(L
); break;
274 case 2: return __LuaWrapCall__connect__OverloadedVersion__2(L
); break;
276 lua_pushstring(L
, "no overload of function __LuaWrapCall__connect matching arguments");
280 int LuaBinder
< QObject
>::__LuaWrapCall__setObjectName (lua_State
*L
) {
281 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
283 lua_pushstring(L
, "trying to reference deleted pointer");
287 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
288 __lua__obj
->QObject::setObjectName(arg1
);
291 int LuaBinder
< QObject
>::__LuaWrapCall__isWidgetType (lua_State
*L
) {
292 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
294 lua_pushstring(L
, "trying to reference deleted pointer");
298 bool ret
= __lua__obj
->QObject::isWidgetType();
299 lua_pushboolean(L
, ret
);
302 int LuaBinder
< QObject
>::__LuaWrapCall__property (lua_State
*L
) {
303 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
305 lua_pushstring(L
, "trying to reference deleted pointer");
309 const char * arg1
= lua_tostring(L
, 2);
310 QVariant ret
= __lua__obj
->QObject::property(arg1
);
311 lqtL_passudata(L
, new QVariant(ret
), "QVariant*");
314 int LuaBinder
< QObject
>::__LuaWrapCall__children (lua_State
*L
) {
315 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
317 lua_pushstring(L
, "trying to reference deleted pointer");
321 const QList
<QObject
*>& ret
= __lua__obj
->QObject::children();
322 lqtL_pushudata(L
, &(ret
), "QList<QObject*>*");
325 int LuaBinder
< QObject
>::__LuaWrapCall__new (lua_State
*L
) {
326 QObject
* arg1
= lqtL_testudata(L
, 1, "QObject*")?*static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*")):static_cast< QObject
* >(0);
327 QObject
* ret
= new LuaBinder
< QObject
>(L
, arg1
);
328 lqtL_passudata(L
, ret
, "QObject*");
331 int LuaBinder
< QObject
>::__LuaWrapCall__delete (lua_State
*L
) {
332 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
334 lua_pushstring(L
, "trying to reference deleted pointer");
342 int LuaBinder
< QObject
>::__LuaWrapCall__setUserData (lua_State
*L
) {
343 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
345 lua_pushstring(L
, "trying to reference deleted pointer");
349 unsigned int arg1
= lua_tointeger(L
, 2);
350 QObjectUserData
* arg2
= *static_cast<QObjectUserData
**>(lqtL_checkudata(L
, 3, "QObjectUserData*"));
351 __lua__obj
->QObject::setUserData(arg1
, arg2
);
354 int LuaBinder
< QObject
>::__LuaWrapCall__eventFilter (lua_State
*L
) {
355 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
357 lua_pushstring(L
, "trying to reference deleted pointer");
361 QObject
* arg1
= *static_cast<QObject
**>(lqtL_checkudata(L
, 2, "QObject*"));
362 QEvent
* arg2
= *static_cast<QEvent
**>(lqtL_checkudata(L
, 3, "QEvent*"));
363 bool ret
= __lua__obj
->QObject::eventFilter(arg1
, arg2
);
364 lua_pushboolean(L
, ret
);
367 int LuaBinder
< QObject
>::__LuaWrapCall__userData (lua_State
*L
) {
368 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
370 lua_pushstring(L
, "trying to reference deleted pointer");
374 unsigned int arg1
= lua_tointeger(L
, 2);
375 QObjectUserData
* ret
= __lua__obj
->QObject::userData(arg1
);
376 lqtL_pushudata(L
, ret
, "QObjectUserData*");
379 int LuaBinder
< QObject
>::__LuaWrapCall__startTimer (lua_State
*L
) {
380 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
382 lua_pushstring(L
, "trying to reference deleted pointer");
386 int arg1
= lua_tointeger(L
, 2);
387 int ret
= __lua__obj
->QObject::startTimer(arg1
);
388 lua_pushinteger(L
, ret
);
391 int LuaBinder
< QObject
>::__LuaWrapCall__moveToThread (lua_State
*L
) {
392 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
394 lua_pushstring(L
, "trying to reference deleted pointer");
398 QThread
* arg1
= *static_cast<QThread
**>(lqtL_checkudata(L
, 2, "QThread*"));
399 __lua__obj
->QObject::moveToThread(arg1
);
402 int LuaBinder
< QObject
>::__LuaWrapCall__thread (lua_State
*L
) {
403 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
405 lua_pushstring(L
, "trying to reference deleted pointer");
409 QThread
* ret
= __lua__obj
->QObject::thread();
410 lqtL_pushudata(L
, ret
, "QThread*");
413 int LuaBinder
< QObject
>::__LuaWrapCall__blockSignals (lua_State
*L
) {
414 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
416 lua_pushstring(L
, "trying to reference deleted pointer");
420 bool arg1
= (bool)lua_toboolean(L
, 2);
421 bool ret
= __lua__obj
->QObject::blockSignals(arg1
);
422 lua_pushboolean(L
, ret
);
425 int LuaBinder
< QObject
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
426 const char * arg1
= lua_tostring(L
, 1);
427 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
428 QString ret
= QObject::tr(arg1
, arg2
);
429 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
432 int LuaBinder
< QObject
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
433 const char * arg1
= lua_tostring(L
, 1);
434 const char * arg2
= lua_tostring(L
, 2);
435 int arg3
= lua_tointeger(L
, 3);
436 QString ret
= QObject::tr(arg1
, arg2
, arg3
);
437 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
440 int LuaBinder
< QObject
>::__LuaWrapCall__tr (lua_State
*L
) {
442 const int premium
= 11+lua_gettop(L
);
444 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
447 score
[1] += premium
-1; // table: 0xd12f00;
449 score
[1] -= premium
*premium
;
451 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
454 score
[1] += premium
-1; // table: 0xd12c70;
456 score
[1] -= premium
*premium
;
459 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
462 score
[2] += premium
-1; // table: 0xd14920;
464 score
[2] -= premium
*premium
;
466 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
469 score
[2] += premium
-1; // table: 0xd14e10;
471 score
[2] -= premium
*premium
;
473 if (lua_isnumber(L
, 3)) {
476 score
[2] += premium
-1; // table: 0xd151c0;
478 score
[2] -= premium
*premium
;
481 for (int i
=1;i
<=2;i
++) {
482 if (score
[best
] < score
[i
]) { best
= i
; }
485 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
486 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
488 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
492 int LuaBinder
< QObject
>::__LuaWrapCall__setParent (lua_State
*L
) {
493 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
495 lua_pushstring(L
, "trying to reference deleted pointer");
499 QObject
* arg1
= *static_cast<QObject
**>(lqtL_checkudata(L
, 2, "QObject*"));
500 __lua__obj
->QObject::setParent(arg1
);
503 int LuaBinder
< QObject
>::__LuaWrapCall__disconnect__OverloadedVersion__1 (lua_State
*L
) {
504 const QObject
* arg1
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
505 const char * arg2
= lua_tostring(L
, 2);
506 const QObject
* arg3
= *static_cast<QObject
**>(lqtL_checkudata(L
, 3, "QObject*"));
507 const char * arg4
= lua_tostring(L
, 4);
508 bool ret
= QObject::disconnect(arg1
, arg2
, arg3
, arg4
);
509 lua_pushboolean(L
, ret
);
512 int LuaBinder
< QObject
>::__LuaWrapCall__disconnect__OverloadedVersion__2 (lua_State
*L
) {
513 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
515 lua_pushstring(L
, "trying to reference deleted pointer");
519 const char * arg1
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
520 const QObject
* arg2
= lqtL_testudata(L
, 3, "QObject*")?*static_cast<QObject
**>(lqtL_checkudata(L
, 3, "QObject*")):static_cast< const QObject
* >(0);
521 const char * arg3
= (lua_type(L
, 4)==LUA_TSTRING
)?lua_tostring(L
, 4):static_cast< const char * >(0);
522 bool ret
= __lua__obj
->QObject::disconnect(arg1
, arg2
, arg3
);
523 lua_pushboolean(L
, ret
);
526 int LuaBinder
< QObject
>::__LuaWrapCall__disconnect__OverloadedVersion__3 (lua_State
*L
) {
527 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
529 lua_pushstring(L
, "trying to reference deleted pointer");
533 const QObject
* arg1
= *static_cast<QObject
**>(lqtL_checkudata(L
, 2, "QObject*"));
534 const char * arg2
= (lua_type(L
, 3)==LUA_TSTRING
)?lua_tostring(L
, 3):static_cast< const char * >(0);
535 bool ret
= __lua__obj
->QObject::disconnect(arg1
, arg2
);
536 lua_pushboolean(L
, ret
);
539 int LuaBinder
< QObject
>::__LuaWrapCall__disconnect (lua_State
*L
) {
541 const int premium
= 11+lua_gettop(L
);
543 if (lqtL_testudata(L
, 1, "QObject*")) {
546 score
[1] += premium
-1; // table: 0xd25bc0;
548 score
[1] -= premium
*premium
;
550 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
553 score
[1] += premium
-1; // table: 0xd258f0;
555 score
[1] -= premium
*premium
;
557 if (lqtL_testudata(L
, 3, "QObject*")) {
560 score
[1] += premium
-1; // table: 0xd26080;
562 score
[1] -= premium
*premium
;
564 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
567 score
[1] += premium
-1; // table: 0xd268e0;
569 score
[1] -= premium
*premium
;
572 score
[2] += lqtL_testudata(L
, 1, "QObject*")?premium
:-premium
*premium
;
573 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
576 score
[2] += premium
-1; // table: 0xd271d0;
578 score
[2] -= premium
*premium
;
580 if (lqtL_testudata(L
, 3, "QObject*")) {
583 score
[2] += premium
-1; // table: 0xd26ed0;
585 score
[2] -= premium
*premium
;
587 if ((lua_type(L
, 4)==LUA_TSTRING
)) {
590 score
[2] += premium
-1; // table: 0xd27680;
592 score
[2] -= premium
*premium
;
595 score
[3] += lqtL_testudata(L
, 1, "QObject*")?premium
:-premium
*premium
;
596 if (lqtL_testudata(L
, 2, "QObject*")) {
599 score
[3] += premium
-1; // table: 0xd28440;
601 score
[3] -= premium
*premium
;
603 if ((lua_type(L
, 3)==LUA_TSTRING
)) {
606 score
[3] += premium
-1; // table: 0xd27a50;
608 score
[3] -= premium
*premium
;
611 for (int i
=1;i
<=3;i
++) {
612 if (score
[best
] < score
[i
]) { best
= i
; }
615 case 1: return __LuaWrapCall__disconnect__OverloadedVersion__1(L
); break;
616 case 2: return __LuaWrapCall__disconnect__OverloadedVersion__2(L
); break;
617 case 3: return __LuaWrapCall__disconnect__OverloadedVersion__3(L
); break;
619 lua_pushstring(L
, "no overload of function __LuaWrapCall__disconnect matching arguments");
623 int LuaBinder
< QObject
>::__LuaWrapCall__removeEventFilter (lua_State
*L
) {
624 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
626 lua_pushstring(L
, "trying to reference deleted pointer");
630 QObject
* arg1
= *static_cast<QObject
**>(lqtL_checkudata(L
, 2, "QObject*"));
631 __lua__obj
->QObject::removeEventFilter(arg1
);
634 int LuaBinder
< QObject
>::__LuaWrapCall__deleteLater (lua_State
*L
) {
635 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
637 lua_pushstring(L
, "trying to reference deleted pointer");
641 __lua__obj
->QObject::deleteLater();
644 int LuaBinder
< QObject
>::__LuaWrapCall__metaObject (lua_State
*L
) {
645 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
647 lua_pushstring(L
, "trying to reference deleted pointer");
651 const QMetaObject
* ret
= __lua__obj
->QObject::metaObject();
652 lqtL_pushudata(L
, ret
, "QMetaObject*");
655 int LuaBinder
< QObject
>::__LuaWrapCall__setProperty (lua_State
*L
) {
656 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
658 lua_pushstring(L
, "trying to reference deleted pointer");
662 const char * arg1
= lua_tostring(L
, 2);
663 const QVariant
& arg2
= **static_cast<QVariant
**>(lqtL_checkudata(L
, 3, "QVariant*"));
664 bool ret
= __lua__obj
->QObject::setProperty(arg1
, arg2
);
665 lua_pushboolean(L
, ret
);
668 int LuaBinder
< QObject
>::__LuaWrapCall__objectName (lua_State
*L
) {
669 QObject
*& __lua__obj
= *static_cast<QObject
**>(lqtL_checkudata(L
, 1, "QObject*"));
671 lua_pushstring(L
, "trying to reference deleted pointer");
675 QString ret
= __lua__obj
->QObject::objectName();
676 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
679 bool LuaBinder
< QObject
>::event (QEvent
* arg1
) {
680 bool absorbed
= false;
681 int oldtop
= lua_gettop(L
);
682 lqtL_pushudata(L
, this, "QObject*");
683 if (lua_getmetatable(L
, -1)) {
684 lua_getfield(L
, -1, "event");
690 lqtL_pushudata(L
, arg1
, "QEvent*");
691 if (lua_isfunction(L
, -1-2)) {
692 lua_pcall(L
, 1+1, 2, 0);
693 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
697 lua_settop(L
, oldtop
);
698 return this->QObject::event(arg1
);
700 bool ret
= (bool)lua_toboolean(L
, -1);
701 lua_settop(L
, oldtop
);
704 void LuaBinder
< QObject
>::disconnectNotify (const char * arg1
) {
705 bool absorbed
= false;
706 int oldtop
= lua_gettop(L
);
707 lqtL_pushudata(L
, this, "QObject*");
708 if (lua_getmetatable(L
, -1)) {
709 lua_getfield(L
, -1, "disconnectNotify");
715 lua_pushstring(L
, arg1
);
716 if (lua_isfunction(L
, -1-2)) {
717 lua_pcall(L
, 1+1, 2, 0);
718 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
722 lua_settop(L
, oldtop
);
723 this->QObject::disconnectNotify(arg1
);
725 lua_settop(L
, oldtop
);
727 bool LuaBinder
< QObject
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
728 bool absorbed
= false;
729 int oldtop
= lua_gettop(L
);
730 lqtL_pushudata(L
, this, "QObject*");
731 if (lua_getmetatable(L
, -1)) {
732 lua_getfield(L
, -1, "eventFilter");
738 lqtL_pushudata(L
, arg1
, "QObject*");
739 lqtL_pushudata(L
, arg2
, "QEvent*");
740 if (lua_isfunction(L
, -2-2)) {
741 lua_pcall(L
, 2+1, 2, 0);
742 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
746 lua_settop(L
, oldtop
);
747 return this->QObject::eventFilter(arg1
, arg2
);
749 bool ret
= (bool)lua_toboolean(L
, -1);
750 lua_settop(L
, oldtop
);
753 void LuaBinder
< QObject
>::timerEvent (QTimerEvent
* arg1
) {
754 bool absorbed
= false;
755 int oldtop
= lua_gettop(L
);
756 lqtL_pushudata(L
, this, "QObject*");
757 if (lua_getmetatable(L
, -1)) {
758 lua_getfield(L
, -1, "timerEvent");
764 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
765 if (lua_isfunction(L
, -1-2)) {
766 lua_pcall(L
, 1+1, 2, 0);
767 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
771 lua_settop(L
, oldtop
);
772 this->QObject::timerEvent(arg1
);
774 lua_settop(L
, oldtop
);
776 void LuaBinder
< QObject
>::connectNotify (const char * arg1
) {
777 bool absorbed
= false;
778 int oldtop
= lua_gettop(L
);
779 lqtL_pushudata(L
, this, "QObject*");
780 if (lua_getmetatable(L
, -1)) {
781 lua_getfield(L
, -1, "connectNotify");
787 lua_pushstring(L
, arg1
);
788 if (lua_isfunction(L
, -1-2)) {
789 lua_pcall(L
, 1+1, 2, 0);
790 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
794 lua_settop(L
, oldtop
);
795 this->QObject::connectNotify(arg1
);
797 lua_settop(L
, oldtop
);
799 void LuaBinder
< QObject
>::childEvent (QChildEvent
* arg1
) {
800 bool absorbed
= false;
801 int oldtop
= lua_gettop(L
);
802 lqtL_pushudata(L
, this, "QObject*");
803 if (lua_getmetatable(L
, -1)) {
804 lua_getfield(L
, -1, "childEvent");
810 lqtL_pushudata(L
, arg1
, "QChildEvent*");
811 if (lua_isfunction(L
, -1-2)) {
812 lua_pcall(L
, 1+1, 2, 0);
813 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
817 lua_settop(L
, oldtop
);
818 this->QObject::childEvent(arg1
);
820 lua_settop(L
, oldtop
);
822 const QMetaObject
* LuaBinder
< QObject
>::metaObject () const {
823 bool absorbed
= false;
824 int oldtop
= lua_gettop(L
);
825 lqtL_pushudata(L
, this, "QObject*");
826 if (lua_getmetatable(L
, -1)) {
827 lua_getfield(L
, -1, "metaObject");
833 if (lua_isfunction(L
, -0-2)) {
834 lua_pcall(L
, 0+1, 2, 0);
835 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
839 lua_settop(L
, oldtop
);
840 return this->QObject::metaObject();
842 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
843 lua_settop(L
, oldtop
);
846 void LuaBinder
< QObject
>::customEvent (QEvent
* arg1
) {
847 bool absorbed
= false;
848 int oldtop
= lua_gettop(L
);
849 lqtL_pushudata(L
, this, "QObject*");
850 if (lua_getmetatable(L
, -1)) {
851 lua_getfield(L
, -1, "customEvent");
857 lqtL_pushudata(L
, arg1
, "QEvent*");
858 if (lua_isfunction(L
, -1-2)) {
859 lua_pcall(L
, 1+1, 2, 0);
860 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
864 lua_settop(L
, oldtop
);
865 this->QObject::customEvent(arg1
);
867 lua_settop(L
, oldtop
);
869 LuaBinder
< QObject
>:: ~LuaBinder
< QObject
> () {
870 int oldtop
= lua_gettop(L
);
871 lqtL_pushudata(L
, this, "QObject*");
872 lua_getfield(L
, -1, "~QObject");
874 if (lua_isfunction(L
, -1)) {
876 lua_pcall(L
, 1, 1, 0);
879 lua_settop(L
, oldtop
);
881 int luaopen_QObject (lua_State
*L
) {
882 if (luaL_newmetatable(L
, "QObject*")) {
883 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__parent
);
884 lua_setfield(L
, -2, "parent");
885 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__signalsBlocked
);
886 lua_setfield(L
, -2, "signalsBlocked");
887 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__trUtf8
);
888 lua_setfield(L
, -2, "trUtf8");
889 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__killTimer
);
890 lua_setfield(L
, -2, "killTimer");
891 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__dumpObjectTree
);
892 lua_setfield(L
, -2, "dumpObjectTree");
893 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__dumpObjectInfo
);
894 lua_setfield(L
, -2, "dumpObjectInfo");
895 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__event
);
896 lua_setfield(L
, -2, "event");
897 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__installEventFilter
);
898 lua_setfield(L
, -2, "installEventFilter");
899 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__inherits
);
900 lua_setfield(L
, -2, "inherits");
901 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__registerUserData
);
902 lua_setfield(L
, -2, "registerUserData");
903 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__dynamicPropertyNames
);
904 lua_setfield(L
, -2, "dynamicPropertyNames");
905 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__connect
);
906 lua_setfield(L
, -2, "connect");
907 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__setObjectName
);
908 lua_setfield(L
, -2, "setObjectName");
909 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__isWidgetType
);
910 lua_setfield(L
, -2, "isWidgetType");
911 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__property
);
912 lua_setfield(L
, -2, "property");
913 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__children
);
914 lua_setfield(L
, -2, "children");
915 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__new
);
916 lua_setfield(L
, -2, "new");
917 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__delete
);
918 lua_setfield(L
, -2, "delete");
919 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__setUserData
);
920 lua_setfield(L
, -2, "setUserData");
921 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__eventFilter
);
922 lua_setfield(L
, -2, "eventFilter");
923 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__userData
);
924 lua_setfield(L
, -2, "userData");
925 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__startTimer
);
926 lua_setfield(L
, -2, "startTimer");
927 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__moveToThread
);
928 lua_setfield(L
, -2, "moveToThread");
929 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__thread
);
930 lua_setfield(L
, -2, "thread");
931 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__blockSignals
);
932 lua_setfield(L
, -2, "blockSignals");
933 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__tr
);
934 lua_setfield(L
, -2, "tr");
935 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__setParent
);
936 lua_setfield(L
, -2, "setParent");
937 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__disconnect
);
938 lua_setfield(L
, -2, "disconnect");
939 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__removeEventFilter
);
940 lua_setfield(L
, -2, "removeEventFilter");
941 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__deleteLater
);
942 lua_setfield(L
, -2, "deleteLater");
943 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__metaObject
);
944 lua_setfield(L
, -2, "metaObject");
945 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__setProperty
);
946 lua_setfield(L
, -2, "setProperty");
947 lua_pushcfunction(L
, LuaBinder
< QObject
>::__LuaWrapCall__objectName
);
948 lua_setfield(L
, -2, "objectName");
950 lua_setfield(L
, -2, "__base");
951 lua_pushcfunction(L
, lqtL_newindex
);
952 lua_setfield(L
, -2, "__newindex");
953 lua_pushcfunction(L
, lqtL_index
);
954 lua_setfield(L
, -2, "__index");
955 lua_pushcfunction(L
, lqtL_gc
);
956 lua_setfield(L
, -2, "__gc");
957 lua_pushstring(L
, "QObject");
958 lua_setfield(L
, -2, "__qtype");
959 lua_setglobal(L
, "QObject");