1 #include "lqt_bind_QLineEdit.hpp"
3 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setValidator (lua_State
*L
) {
4 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
6 lua_pushstring(L
, "trying to reference deleted pointer");
10 const QValidator
* arg1
= *static_cast<QValidator
**>(lqtL_checkudata(L
, 2, "QValidator*"));
11 __lua__obj
->QLineEdit::setValidator(arg1
);
14 int LuaBinder
< QLineEdit
>::__LuaWrapCall__inputMask (lua_State
*L
) {
15 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
17 lua_pushstring(L
, "trying to reference deleted pointer");
21 QString ret
= __lua__obj
->QLineEdit::inputMask();
22 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
25 int LuaBinder
< QLineEdit
>::__LuaWrapCall__createStandardContextMenu (lua_State
*L
) {
26 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
28 lua_pushstring(L
, "trying to reference deleted pointer");
32 QMenu
* ret
= __lua__obj
->QLineEdit::createStandardContextMenu();
33 lqtL_pushudata(L
, ret
, "QMenu*");
36 int LuaBinder
< QLineEdit
>::__LuaWrapCall__sizeHint (lua_State
*L
) {
37 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
39 lua_pushstring(L
, "trying to reference deleted pointer");
43 QSize ret
= __lua__obj
->QLineEdit::sizeHint();
44 lqtL_passudata(L
, new QSize(ret
), "QSize*");
47 int LuaBinder
< QLineEdit
>::__LuaWrapCall__validator (lua_State
*L
) {
48 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
50 lua_pushstring(L
, "trying to reference deleted pointer");
54 const QValidator
* ret
= __lua__obj
->QLineEdit::validator();
55 lqtL_pushudata(L
, ret
, "QValidator*");
58 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorWordBackward (lua_State
*L
) {
59 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
61 lua_pushstring(L
, "trying to reference deleted pointer");
65 bool arg1
= (bool)lua_toboolean(L
, 2);
66 __lua__obj
->QLineEdit::cursorWordBackward(arg1
);
69 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cut (lua_State
*L
) {
70 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
72 lua_pushstring(L
, "trying to reference deleted pointer");
76 __lua__obj
->QLineEdit::cut();
79 int LuaBinder
< QLineEdit
>::__LuaWrapCall__hasSelectedText (lua_State
*L
) {
80 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
82 lua_pushstring(L
, "trying to reference deleted pointer");
86 bool ret
= __lua__obj
->QLineEdit::hasSelectedText();
87 lua_pushboolean(L
, ret
);
90 int LuaBinder
< QLineEdit
>::__LuaWrapCall__copy (lua_State
*L
) {
91 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
93 lua_pushstring(L
, "trying to reference deleted pointer");
97 __lua__obj
->QLineEdit::copy();
100 int LuaBinder
< QLineEdit
>::__LuaWrapCall__home (lua_State
*L
) {
101 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
103 lua_pushstring(L
, "trying to reference deleted pointer");
107 bool arg1
= (bool)lua_toboolean(L
, 2);
108 __lua__obj
->QLineEdit::home(arg1
);
111 int LuaBinder
< QLineEdit
>::__LuaWrapCall__trUtf8__OverloadedVersion__1 (lua_State
*L
) {
112 const char * arg1
= lua_tostring(L
, 1);
113 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
114 QString ret
= QLineEdit::trUtf8(arg1
, arg2
);
115 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
118 int LuaBinder
< QLineEdit
>::__LuaWrapCall__trUtf8__OverloadedVersion__2 (lua_State
*L
) {
119 const char * arg1
= lua_tostring(L
, 1);
120 const char * arg2
= lua_tostring(L
, 2);
121 int arg3
= lua_tointeger(L
, 3);
122 QString ret
= QLineEdit::trUtf8(arg1
, arg2
, arg3
);
123 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
126 int LuaBinder
< QLineEdit
>::__LuaWrapCall__trUtf8 (lua_State
*L
) {
128 const int premium
= 11+lua_gettop(L
);
130 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
133 score
[1] += premium
-1; // table: 0xcbcfe0;
135 score
[1] -= premium
*premium
;
137 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
140 score
[1] += premium
-1; // table: 0xcc96b0;
142 score
[1] -= premium
*premium
;
145 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
148 score
[2] += premium
-1; // table: 0xb3cdd0;
150 score
[2] -= premium
*premium
;
152 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
155 score
[2] += premium
-1; // table: 0xb907f0;
157 score
[2] -= premium
*premium
;
159 if (lua_isnumber(L
, 3)) {
162 score
[2] += premium
-1; // table: 0xb26f00;
164 score
[2] -= premium
*premium
;
167 for (int i
=1;i
<=2;i
++) {
168 if (score
[best
] < score
[i
]) { best
= i
; }
171 case 1: return __LuaWrapCall__trUtf8__OverloadedVersion__1(L
); break;
172 case 2: return __LuaWrapCall__trUtf8__OverloadedVersion__2(L
); break;
174 lua_pushstring(L
, "no overload of function __LuaWrapCall__trUtf8 matching arguments");
178 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorWordForward (lua_State
*L
) {
179 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
181 lua_pushstring(L
, "trying to reference deleted pointer");
185 bool arg1
= (bool)lua_toboolean(L
, 2);
186 __lua__obj
->QLineEdit::cursorWordForward(arg1
);
189 int LuaBinder
< QLineEdit
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
190 const char * arg1
= lua_tostring(L
, 1);
191 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
192 QString ret
= QLineEdit::tr(arg1
, arg2
);
193 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
196 int LuaBinder
< QLineEdit
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
197 const char * arg1
= lua_tostring(L
, 1);
198 const char * arg2
= lua_tostring(L
, 2);
199 int arg3
= lua_tointeger(L
, 3);
200 QString ret
= QLineEdit::tr(arg1
, arg2
, arg3
);
201 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
204 int LuaBinder
< QLineEdit
>::__LuaWrapCall__tr (lua_State
*L
) {
206 const int premium
= 11+lua_gettop(L
);
208 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
211 score
[1] += premium
-1; // table: 0xd57b30;
213 score
[1] -= premium
*premium
;
215 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
218 score
[1] += premium
-1; // table: 0xd5b120;
220 score
[1] -= premium
*premium
;
223 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
226 score
[2] += premium
-1; // table: 0xcb9fe0;
228 score
[2] -= premium
*premium
;
230 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
233 score
[2] += premium
-1; // table: 0xc5ca50;
235 score
[2] -= premium
*premium
;
237 if (lua_isnumber(L
, 3)) {
240 score
[2] += premium
-1; // table: 0x6b0720;
242 score
[2] -= premium
*premium
;
245 for (int i
=1;i
<=2;i
++) {
246 if (score
[best
] < score
[i
]) { best
= i
; }
249 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
250 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
252 lua_pushstring(L
, "no overload of function __LuaWrapCall__tr matching arguments");
256 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorPositionAt (lua_State
*L
) {
257 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
259 lua_pushstring(L
, "trying to reference deleted pointer");
263 const QPoint
& arg1
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 2, "QPoint*"));
264 int ret
= __lua__obj
->QLineEdit::cursorPositionAt(arg1
);
265 lua_pushinteger(L
, ret
);
268 int LuaBinder
< QLineEdit
>::__LuaWrapCall__isReadOnly (lua_State
*L
) {
269 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
271 lua_pushstring(L
, "trying to reference deleted pointer");
275 bool ret
= __lua__obj
->QLineEdit::isReadOnly();
276 lua_pushboolean(L
, ret
);
279 int LuaBinder
< QLineEdit
>::__LuaWrapCall__insert (lua_State
*L
) {
280 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
282 lua_pushstring(L
, "trying to reference deleted pointer");
286 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
287 __lua__obj
->QLineEdit::insert(arg1
);
290 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setMaxLength (lua_State
*L
) {
291 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
293 lua_pushstring(L
, "trying to reference deleted pointer");
297 int arg1
= lua_tointeger(L
, 2);
298 __lua__obj
->QLineEdit::setMaxLength(arg1
);
301 int LuaBinder
< QLineEdit
>::__LuaWrapCall__text (lua_State
*L
) {
302 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
304 lua_pushstring(L
, "trying to reference deleted pointer");
308 QString ret
= __lua__obj
->QLineEdit::text();
309 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
312 int LuaBinder
< QLineEdit
>::__LuaWrapCall__event (lua_State
*L
) {
313 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
315 lua_pushstring(L
, "trying to reference deleted pointer");
319 QEvent
* arg1
= *static_cast<QEvent
**>(lqtL_checkudata(L
, 2, "QEvent*"));
320 bool ret
= __lua__obj
->QLineEdit::event(arg1
);
321 lua_pushboolean(L
, ret
);
324 int LuaBinder
< QLineEdit
>::__LuaWrapCall__isModified (lua_State
*L
) {
325 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
327 lua_pushstring(L
, "trying to reference deleted pointer");
331 bool ret
= __lua__obj
->QLineEdit::isModified();
332 lua_pushboolean(L
, ret
);
335 int LuaBinder
< QLineEdit
>::__LuaWrapCall__hasFrame (lua_State
*L
) {
336 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
338 lua_pushstring(L
, "trying to reference deleted pointer");
342 bool ret
= __lua__obj
->QLineEdit::hasFrame();
343 lua_pushboolean(L
, ret
);
346 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setCursorPosition (lua_State
*L
) {
347 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
349 lua_pushstring(L
, "trying to reference deleted pointer");
353 int arg1
= lua_tointeger(L
, 2);
354 __lua__obj
->QLineEdit::setCursorPosition(arg1
);
357 int LuaBinder
< QLineEdit
>::__LuaWrapCall__echoMode (lua_State
*L
) {
358 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
360 lua_pushstring(L
, "trying to reference deleted pointer");
364 QLineEdit::EchoMode ret
= __lua__obj
->QLineEdit::echoMode();
365 lqtL_pushenum(L
, ret
, "QLineEdit::EchoMode");
368 int LuaBinder
< QLineEdit
>::__LuaWrapCall__isUndoAvailable (lua_State
*L
) {
369 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
371 lua_pushstring(L
, "trying to reference deleted pointer");
375 bool ret
= __lua__obj
->QLineEdit::isUndoAvailable();
376 lua_pushboolean(L
, ret
);
379 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorBackward (lua_State
*L
) {
380 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
382 lua_pushstring(L
, "trying to reference deleted pointer");
386 bool arg1
= (bool)lua_toboolean(L
, 2);
387 int arg2
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(1);
388 __lua__obj
->QLineEdit::cursorBackward(arg1
, arg2
);
391 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setSelection (lua_State
*L
) {
392 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
394 lua_pushstring(L
, "trying to reference deleted pointer");
398 int arg1
= lua_tointeger(L
, 2);
399 int arg2
= lua_tointeger(L
, 3);
400 __lua__obj
->QLineEdit::setSelection(arg1
, arg2
);
403 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setReadOnly (lua_State
*L
) {
404 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
406 lua_pushstring(L
, "trying to reference deleted pointer");
410 bool arg1
= (bool)lua_toboolean(L
, 2);
411 __lua__obj
->QLineEdit::setReadOnly(arg1
);
414 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setModified (lua_State
*L
) {
415 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
417 lua_pushstring(L
, "trying to reference deleted pointer");
421 bool arg1
= (bool)lua_toboolean(L
, 2);
422 __lua__obj
->QLineEdit::setModified(arg1
);
425 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setDragEnabled (lua_State
*L
) {
426 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
428 lua_pushstring(L
, "trying to reference deleted pointer");
432 bool arg1
= (bool)lua_toboolean(L
, 2);
433 __lua__obj
->QLineEdit::setDragEnabled(arg1
);
436 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorPosition (lua_State
*L
) {
437 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
439 lua_pushstring(L
, "trying to reference deleted pointer");
443 int ret
= __lua__obj
->QLineEdit::cursorPosition();
444 lua_pushinteger(L
, ret
);
447 int LuaBinder
< QLineEdit
>::__LuaWrapCall__isRedoAvailable (lua_State
*L
) {
448 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
450 lua_pushstring(L
, "trying to reference deleted pointer");
454 bool ret
= __lua__obj
->QLineEdit::isRedoAvailable();
455 lua_pushboolean(L
, ret
);
458 int LuaBinder
< QLineEdit
>::__LuaWrapCall__del (lua_State
*L
) {
459 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
461 lua_pushstring(L
, "trying to reference deleted pointer");
465 __lua__obj
->QLineEdit::del();
468 int LuaBinder
< QLineEdit
>::__LuaWrapCall__displayText (lua_State
*L
) {
469 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
471 lua_pushstring(L
, "trying to reference deleted pointer");
475 QString ret
= __lua__obj
->QLineEdit::displayText();
476 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
479 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setText (lua_State
*L
) {
480 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
482 lua_pushstring(L
, "trying to reference deleted pointer");
486 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
487 __lua__obj
->QLineEdit::setText(arg1
);
490 int LuaBinder
< QLineEdit
>::__LuaWrapCall__minimumSizeHint (lua_State
*L
) {
491 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
493 lua_pushstring(L
, "trying to reference deleted pointer");
497 QSize ret
= __lua__obj
->QLineEdit::minimumSizeHint();
498 lqtL_passudata(L
, new QSize(ret
), "QSize*");
501 int LuaBinder
< QLineEdit
>::__LuaWrapCall__hasAcceptableInput (lua_State
*L
) {
502 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
504 lua_pushstring(L
, "trying to reference deleted pointer");
508 bool ret
= __lua__obj
->QLineEdit::hasAcceptableInput();
509 lua_pushboolean(L
, ret
);
512 int LuaBinder
< QLineEdit
>::__LuaWrapCall__selectionStart (lua_State
*L
) {
513 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
515 lua_pushstring(L
, "trying to reference deleted pointer");
519 int ret
= __lua__obj
->QLineEdit::selectionStart();
520 lua_pushinteger(L
, ret
);
523 int LuaBinder
< QLineEdit
>::__LuaWrapCall__backspace (lua_State
*L
) {
524 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
526 lua_pushstring(L
, "trying to reference deleted pointer");
530 __lua__obj
->QLineEdit::backspace();
533 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setEchoMode (lua_State
*L
) {
534 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
536 lua_pushstring(L
, "trying to reference deleted pointer");
540 QLineEdit::EchoMode arg1
= static_cast<QLineEdit::EchoMode
>(lqtL_toenum(L
, 2, "QLineEdit::EchoMode"));
541 __lua__obj
->QLineEdit::setEchoMode(arg1
);
544 int LuaBinder
< QLineEdit
>::__LuaWrapCall__end (lua_State
*L
) {
545 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
547 lua_pushstring(L
, "trying to reference deleted pointer");
551 bool arg1
= (bool)lua_toboolean(L
, 2);
552 __lua__obj
->QLineEdit::end(arg1
);
555 int LuaBinder
< QLineEdit
>::__LuaWrapCall__selectedText (lua_State
*L
) {
556 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
558 lua_pushstring(L
, "trying to reference deleted pointer");
562 QString ret
= __lua__obj
->QLineEdit::selectedText();
563 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
566 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setCompleter (lua_State
*L
) {
567 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
569 lua_pushstring(L
, "trying to reference deleted pointer");
573 QCompleter
* arg1
= *static_cast<QCompleter
**>(lqtL_checkudata(L
, 2, "QCompleter*"));
574 __lua__obj
->QLineEdit::setCompleter(arg1
);
577 int LuaBinder
< QLineEdit
>::__LuaWrapCall__metaObject (lua_State
*L
) {
578 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
580 lua_pushstring(L
, "trying to reference deleted pointer");
584 const QMetaObject
* ret
= __lua__obj
->QLineEdit::metaObject();
585 lqtL_pushudata(L
, ret
, "QMetaObject*");
588 int LuaBinder
< QLineEdit
>::__LuaWrapCall__new__OverloadedVersion__1 (lua_State
*L
) {
589 QWidget
* arg1
= lqtL_testudata(L
, 1, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*")):static_cast< QWidget
* >(0);
590 QLineEdit
* ret
= new LuaBinder
< QLineEdit
>(L
, arg1
);
591 lqtL_passudata(L
, ret
, "QLineEdit*");
594 int LuaBinder
< QLineEdit
>::__LuaWrapCall__new__OverloadedVersion__2 (lua_State
*L
) {
595 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 1), lua_objlen(L
, 1));
596 QWidget
* arg2
= lqtL_testudata(L
, 2, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*")):static_cast< QWidget
* >(0);
597 QLineEdit
* ret
= new LuaBinder
< QLineEdit
>(L
, arg1
, arg2
);
598 lqtL_passudata(L
, ret
, "QLineEdit*");
601 int LuaBinder
< QLineEdit
>::__LuaWrapCall__new (lua_State
*L
) {
603 const int premium
= 11+lua_gettop(L
);
605 if (lqtL_testudata(L
, 1, "QWidget*")) {
608 score
[1] += premium
-1; // table: 0x81b8f0;
610 score
[1] -= premium
*premium
;
613 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
616 score
[2] += premium
-1; // table: 0x775c60;
618 score
[2] -= premium
*premium
;
620 if (lqtL_testudata(L
, 2, "QWidget*")) {
623 score
[2] += premium
-1; // table: 0x7e63a0;
625 score
[2] -= premium
*premium
;
628 for (int i
=1;i
<=2;i
++) {
629 if (score
[best
] < score
[i
]) { best
= i
; }
632 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L
); break;
633 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L
); break;
635 lua_pushstring(L
, "no overload of function __LuaWrapCall__new matching arguments");
639 int LuaBinder
< QLineEdit
>::__LuaWrapCall__inputMethodQuery (lua_State
*L
) {
640 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
642 lua_pushstring(L
, "trying to reference deleted pointer");
646 Qt::InputMethodQuery arg1
= static_cast<Qt::InputMethodQuery
>(lqtL_toenum(L
, 2, "Qt::InputMethodQuery"));
647 QVariant ret
= __lua__obj
->QLineEdit::inputMethodQuery(arg1
);
648 lqtL_passudata(L
, new QVariant(ret
), "QVariant*");
651 int LuaBinder
< QLineEdit
>::__LuaWrapCall__delete (lua_State
*L
) {
652 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
654 lua_pushstring(L
, "trying to reference deleted pointer");
662 int LuaBinder
< QLineEdit
>::__LuaWrapCall__redo (lua_State
*L
) {
663 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
665 lua_pushstring(L
, "trying to reference deleted pointer");
669 __lua__obj
->QLineEdit::redo();
672 int LuaBinder
< QLineEdit
>::__LuaWrapCall__deselect (lua_State
*L
) {
673 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
675 lua_pushstring(L
, "trying to reference deleted pointer");
679 __lua__obj
->QLineEdit::deselect();
682 int LuaBinder
< QLineEdit
>::__LuaWrapCall__completer (lua_State
*L
) {
683 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
685 lua_pushstring(L
, "trying to reference deleted pointer");
689 QCompleter
* ret
= __lua__obj
->QLineEdit::completer();
690 lqtL_pushudata(L
, ret
, "QCompleter*");
693 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setInputMask (lua_State
*L
) {
694 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
696 lua_pushstring(L
, "trying to reference deleted pointer");
700 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
701 __lua__obj
->QLineEdit::setInputMask(arg1
);
704 int LuaBinder
< QLineEdit
>::__LuaWrapCall__clear (lua_State
*L
) {
705 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
707 lua_pushstring(L
, "trying to reference deleted pointer");
711 __lua__obj
->QLineEdit::clear();
714 int LuaBinder
< QLineEdit
>::__LuaWrapCall__maxLength (lua_State
*L
) {
715 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
717 lua_pushstring(L
, "trying to reference deleted pointer");
721 int ret
= __lua__obj
->QLineEdit::maxLength();
722 lua_pushinteger(L
, ret
);
725 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setFrame (lua_State
*L
) {
726 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
728 lua_pushstring(L
, "trying to reference deleted pointer");
732 bool arg1
= (bool)lua_toboolean(L
, 2);
733 __lua__obj
->QLineEdit::setFrame(arg1
);
736 int LuaBinder
< QLineEdit
>::__LuaWrapCall__selectAll (lua_State
*L
) {
737 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
739 lua_pushstring(L
, "trying to reference deleted pointer");
743 __lua__obj
->QLineEdit::selectAll();
746 int LuaBinder
< QLineEdit
>::__LuaWrapCall__alignment (lua_State
*L
) {
747 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
749 lua_pushstring(L
, "trying to reference deleted pointer");
753 QFlags
<Qt::AlignmentFlag
> ret
= __lua__obj
->QLineEdit::alignment();
754 lqtL_passudata(L
, new QFlags
<Qt::AlignmentFlag
>(ret
), "QFlags<Qt::AlignmentFlag>*");
757 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorForward (lua_State
*L
) {
758 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
760 lua_pushstring(L
, "trying to reference deleted pointer");
764 bool arg1
= (bool)lua_toboolean(L
, 2);
765 int arg2
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(1);
766 __lua__obj
->QLineEdit::cursorForward(arg1
, arg2
);
769 int LuaBinder
< QLineEdit
>::__LuaWrapCall__undo (lua_State
*L
) {
770 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
772 lua_pushstring(L
, "trying to reference deleted pointer");
776 __lua__obj
->QLineEdit::undo();
779 int LuaBinder
< QLineEdit
>::__LuaWrapCall__paste (lua_State
*L
) {
780 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
782 lua_pushstring(L
, "trying to reference deleted pointer");
786 __lua__obj
->QLineEdit::paste();
789 int LuaBinder
< QLineEdit
>::__LuaWrapCall__dragEnabled (lua_State
*L
) {
790 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
792 lua_pushstring(L
, "trying to reference deleted pointer");
796 bool ret
= __lua__obj
->QLineEdit::dragEnabled();
797 lua_pushboolean(L
, ret
);
800 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setAlignment (lua_State
*L
) {
801 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
803 lua_pushstring(L
, "trying to reference deleted pointer");
807 QFlags
<Qt::AlignmentFlag
> arg1
= **static_cast<QFlags
<Qt::AlignmentFlag
>**>(lqtL_checkudata(L
, 2, "QFlags<Qt::AlignmentFlag>*"));
808 __lua__obj
->QLineEdit::setAlignment(arg1
);
811 void LuaBinder
< QLineEdit
>::styleChange (QStyle
& arg1
) {
812 bool absorbed
= false;
813 int oldtop
= lua_gettop(L
);
814 lqtL_pushudata(L
, this, "QLineEdit*");
815 if (lua_getmetatable(L
, -1)) {
816 lua_getfield(L
, -1, "styleChange");
822 lqtL_pushudata(L
, &(arg1
), "QStyle*");
823 if (lua_isfunction(L
, -1-2)) {
824 lua_pcall(L
, 1+1, 2, 0);
825 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
829 lua_settop(L
, oldtop
);
830 this->QWidget::styleChange(arg1
);
832 lua_settop(L
, oldtop
);
834 void LuaBinder
< QLineEdit
>::mouseReleaseEvent (QMouseEvent
* arg1
) {
835 bool absorbed
= false;
836 int oldtop
= lua_gettop(L
);
837 lqtL_pushudata(L
, this, "QLineEdit*");
838 if (lua_getmetatable(L
, -1)) {
839 lua_getfield(L
, -1, "mouseReleaseEvent");
845 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
846 if (lua_isfunction(L
, -1-2)) {
847 lua_pcall(L
, 1+1, 2, 0);
848 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
852 lua_settop(L
, oldtop
);
853 this->QLineEdit::mouseReleaseEvent(arg1
);
855 lua_settop(L
, oldtop
);
857 void LuaBinder
< QLineEdit
>::keyPressEvent (QKeyEvent
* arg1
) {
858 bool absorbed
= false;
859 int oldtop
= lua_gettop(L
);
860 lqtL_pushudata(L
, this, "QLineEdit*");
861 if (lua_getmetatable(L
, -1)) {
862 lua_getfield(L
, -1, "keyPressEvent");
868 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
869 if (lua_isfunction(L
, -1-2)) {
870 lua_pcall(L
, 1+1, 2, 0);
871 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
875 lua_settop(L
, oldtop
);
876 this->QLineEdit::keyPressEvent(arg1
);
878 lua_settop(L
, oldtop
);
880 void LuaBinder
< QLineEdit
>::contextMenuEvent (QContextMenuEvent
* arg1
) {
881 bool absorbed
= false;
882 int oldtop
= lua_gettop(L
);
883 lqtL_pushudata(L
, this, "QLineEdit*");
884 if (lua_getmetatable(L
, -1)) {
885 lua_getfield(L
, -1, "contextMenuEvent");
891 lqtL_pushudata(L
, arg1
, "QContextMenuEvent*");
892 if (lua_isfunction(L
, -1-2)) {
893 lua_pcall(L
, 1+1, 2, 0);
894 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
898 lua_settop(L
, oldtop
);
899 this->QLineEdit::contextMenuEvent(arg1
);
901 lua_settop(L
, oldtop
);
903 int LuaBinder
< QLineEdit
>::devType () const {
904 bool absorbed
= false;
905 int oldtop
= lua_gettop(L
);
906 lqtL_pushudata(L
, this, "QLineEdit*");
907 if (lua_getmetatable(L
, -1)) {
908 lua_getfield(L
, -1, "devType");
914 if (lua_isfunction(L
, -0-2)) {
915 lua_pcall(L
, 0+1, 2, 0);
916 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
920 lua_settop(L
, oldtop
);
921 return this->QWidget::devType();
923 int ret
= lua_tointeger(L
, -1);
924 lua_settop(L
, oldtop
);
927 void LuaBinder
< QLineEdit
>::setVisible (bool arg1
) {
928 bool absorbed
= false;
929 int oldtop
= lua_gettop(L
);
930 lqtL_pushudata(L
, this, "QLineEdit*");
931 if (lua_getmetatable(L
, -1)) {
932 lua_getfield(L
, -1, "setVisible");
938 lua_pushboolean(L
, arg1
);
939 if (lua_isfunction(L
, -1-2)) {
940 lua_pcall(L
, 1+1, 2, 0);
941 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
945 lua_settop(L
, oldtop
);
946 this->QWidget::setVisible(arg1
);
948 lua_settop(L
, oldtop
);
950 QVariant LuaBinder
< QLineEdit
>::inputMethodQuery (Qt::InputMethodQuery arg1
) const {
951 bool absorbed
= false;
952 int oldtop
= lua_gettop(L
);
953 lqtL_pushudata(L
, this, "QLineEdit*");
954 if (lua_getmetatable(L
, -1)) {
955 lua_getfield(L
, -1, "inputMethodQuery");
961 lqtL_pushenum(L
, arg1
, "Qt::InputMethodQuery");
962 if (lua_isfunction(L
, -1-2)) {
963 lua_pcall(L
, 1+1, 2, 0);
964 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
968 lua_settop(L
, oldtop
);
969 return this->QLineEdit::inputMethodQuery(arg1
);
971 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
972 lua_settop(L
, oldtop
);
975 QPaintEngine
* LuaBinder
< QLineEdit
>::paintEngine () const {
976 bool absorbed
= false;
977 int oldtop
= lua_gettop(L
);
978 lqtL_pushudata(L
, this, "QLineEdit*");
979 if (lua_getmetatable(L
, -1)) {
980 lua_getfield(L
, -1, "paintEngine");
986 if (lua_isfunction(L
, -0-2)) {
987 lua_pcall(L
, 0+1, 2, 0);
988 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
992 lua_settop(L
, oldtop
);
993 return this->QWidget::paintEngine();
995 QPaintEngine
* ret
= *static_cast<QPaintEngine
**>(lqtL_checkudata(L
, -1, "QPaintEngine*"));
996 lua_settop(L
, oldtop
);
999 void LuaBinder
< QLineEdit
>::dragLeaveEvent (QDragLeaveEvent
* arg1
) {
1000 bool absorbed
= false;
1001 int oldtop
= lua_gettop(L
);
1002 lqtL_pushudata(L
, this, "QLineEdit*");
1003 if (lua_getmetatable(L
, -1)) {
1004 lua_getfield(L
, -1, "dragLeaveEvent");
1010 lqtL_pushudata(L
, arg1
, "QDragLeaveEvent*");
1011 if (lua_isfunction(L
, -1-2)) {
1012 lua_pcall(L
, 1+1, 2, 0);
1013 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1017 lua_settop(L
, oldtop
);
1018 this->QLineEdit::dragLeaveEvent(arg1
);
1020 lua_settop(L
, oldtop
);
1022 void LuaBinder
< QLineEdit
>::mousePressEvent (QMouseEvent
* arg1
) {
1023 bool absorbed
= false;
1024 int oldtop
= lua_gettop(L
);
1025 lqtL_pushudata(L
, this, "QLineEdit*");
1026 if (lua_getmetatable(L
, -1)) {
1027 lua_getfield(L
, -1, "mousePressEvent");
1033 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1034 if (lua_isfunction(L
, -1-2)) {
1035 lua_pcall(L
, 1+1, 2, 0);
1036 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1040 lua_settop(L
, oldtop
);
1041 this->QLineEdit::mousePressEvent(arg1
);
1043 lua_settop(L
, oldtop
);
1045 QSize LuaBinder
< QLineEdit
>::sizeHint () const {
1046 bool absorbed
= false;
1047 int oldtop
= lua_gettop(L
);
1048 lqtL_pushudata(L
, this, "QLineEdit*");
1049 if (lua_getmetatable(L
, -1)) {
1050 lua_getfield(L
, -1, "sizeHint");
1056 if (lua_isfunction(L
, -0-2)) {
1057 lua_pcall(L
, 0+1, 2, 0);
1058 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1062 lua_settop(L
, oldtop
);
1063 return this->QLineEdit::sizeHint();
1065 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1066 lua_settop(L
, oldtop
);
1069 void LuaBinder
< QLineEdit
>::changeEvent (QEvent
* arg1
) {
1070 bool absorbed
= false;
1071 int oldtop
= lua_gettop(L
);
1072 lqtL_pushudata(L
, this, "QLineEdit*");
1073 if (lua_getmetatable(L
, -1)) {
1074 lua_getfield(L
, -1, "changeEvent");
1080 lqtL_pushudata(L
, arg1
, "QEvent*");
1081 if (lua_isfunction(L
, -1-2)) {
1082 lua_pcall(L
, 1+1, 2, 0);
1083 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1087 lua_settop(L
, oldtop
);
1088 this->QLineEdit::changeEvent(arg1
);
1090 lua_settop(L
, oldtop
);
1092 void LuaBinder
< QLineEdit
>::tabletEvent (QTabletEvent
* arg1
) {
1093 bool absorbed
= false;
1094 int oldtop
= lua_gettop(L
);
1095 lqtL_pushudata(L
, this, "QLineEdit*");
1096 if (lua_getmetatable(L
, -1)) {
1097 lua_getfield(L
, -1, "tabletEvent");
1103 lqtL_pushudata(L
, arg1
, "QTabletEvent*");
1104 if (lua_isfunction(L
, -1-2)) {
1105 lua_pcall(L
, 1+1, 2, 0);
1106 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1110 lua_settop(L
, oldtop
);
1111 this->QWidget::tabletEvent(arg1
);
1113 lua_settop(L
, oldtop
);
1115 void LuaBinder
< QLineEdit
>::enterEvent (QEvent
* arg1
) {
1116 bool absorbed
= false;
1117 int oldtop
= lua_gettop(L
);
1118 lqtL_pushudata(L
, this, "QLineEdit*");
1119 if (lua_getmetatable(L
, -1)) {
1120 lua_getfield(L
, -1, "enterEvent");
1126 lqtL_pushudata(L
, arg1
, "QEvent*");
1127 if (lua_isfunction(L
, -1-2)) {
1128 lua_pcall(L
, 1+1, 2, 0);
1129 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1133 lua_settop(L
, oldtop
);
1134 this->QWidget::enterEvent(arg1
);
1136 lua_settop(L
, oldtop
);
1138 void LuaBinder
< QLineEdit
>::closeEvent (QCloseEvent
* arg1
) {
1139 bool absorbed
= false;
1140 int oldtop
= lua_gettop(L
);
1141 lqtL_pushudata(L
, this, "QLineEdit*");
1142 if (lua_getmetatable(L
, -1)) {
1143 lua_getfield(L
, -1, "closeEvent");
1149 lqtL_pushudata(L
, arg1
, "QCloseEvent*");
1150 if (lua_isfunction(L
, -1-2)) {
1151 lua_pcall(L
, 1+1, 2, 0);
1152 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1156 lua_settop(L
, oldtop
);
1157 this->QWidget::closeEvent(arg1
);
1159 lua_settop(L
, oldtop
);
1161 QSize LuaBinder
< QLineEdit
>::minimumSizeHint () const {
1162 bool absorbed
= false;
1163 int oldtop
= lua_gettop(L
);
1164 lqtL_pushudata(L
, this, "QLineEdit*");
1165 if (lua_getmetatable(L
, -1)) {
1166 lua_getfield(L
, -1, "minimumSizeHint");
1172 if (lua_isfunction(L
, -0-2)) {
1173 lua_pcall(L
, 0+1, 2, 0);
1174 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1178 lua_settop(L
, oldtop
);
1179 return this->QLineEdit::minimumSizeHint();
1181 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1182 lua_settop(L
, oldtop
);
1185 void LuaBinder
< QLineEdit
>::dragEnterEvent (QDragEnterEvent
* arg1
) {
1186 bool absorbed
= false;
1187 int oldtop
= lua_gettop(L
);
1188 lqtL_pushudata(L
, this, "QLineEdit*");
1189 if (lua_getmetatable(L
, -1)) {
1190 lua_getfield(L
, -1, "dragEnterEvent");
1196 lqtL_pushudata(L
, arg1
, "QDragEnterEvent*");
1197 if (lua_isfunction(L
, -1-2)) {
1198 lua_pcall(L
, 1+1, 2, 0);
1199 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1203 lua_settop(L
, oldtop
);
1204 this->QLineEdit::dragEnterEvent(arg1
);
1206 lua_settop(L
, oldtop
);
1208 void LuaBinder
< QLineEdit
>::actionEvent (QActionEvent
* arg1
) {
1209 bool absorbed
= false;
1210 int oldtop
= lua_gettop(L
);
1211 lqtL_pushudata(L
, this, "QLineEdit*");
1212 if (lua_getmetatable(L
, -1)) {
1213 lua_getfield(L
, -1, "actionEvent");
1219 lqtL_pushudata(L
, arg1
, "QActionEvent*");
1220 if (lua_isfunction(L
, -1-2)) {
1221 lua_pcall(L
, 1+1, 2, 0);
1222 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1226 lua_settop(L
, oldtop
);
1227 this->QWidget::actionEvent(arg1
);
1229 lua_settop(L
, oldtop
);
1231 void LuaBinder
< QLineEdit
>::showEvent (QShowEvent
* arg1
) {
1232 bool absorbed
= false;
1233 int oldtop
= lua_gettop(L
);
1234 lqtL_pushudata(L
, this, "QLineEdit*");
1235 if (lua_getmetatable(L
, -1)) {
1236 lua_getfield(L
, -1, "showEvent");
1242 lqtL_pushudata(L
, arg1
, "QShowEvent*");
1243 if (lua_isfunction(L
, -1-2)) {
1244 lua_pcall(L
, 1+1, 2, 0);
1245 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1249 lua_settop(L
, oldtop
);
1250 this->QWidget::showEvent(arg1
);
1252 lua_settop(L
, oldtop
);
1254 const QMetaObject
* LuaBinder
< QLineEdit
>::metaObject () const {
1255 bool absorbed
= false;
1256 int oldtop
= lua_gettop(L
);
1257 lqtL_pushudata(L
, this, "QLineEdit*");
1258 if (lua_getmetatable(L
, -1)) {
1259 lua_getfield(L
, -1, "metaObject");
1265 if (lua_isfunction(L
, -0-2)) {
1266 lua_pcall(L
, 0+1, 2, 0);
1267 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1271 lua_settop(L
, oldtop
);
1272 return this->QLineEdit::metaObject();
1274 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
1275 lua_settop(L
, oldtop
);
1278 void LuaBinder
< QLineEdit
>::paintEvent (QPaintEvent
* arg1
) {
1279 bool absorbed
= false;
1280 int oldtop
= lua_gettop(L
);
1281 lqtL_pushudata(L
, this, "QLineEdit*");
1282 if (lua_getmetatable(L
, -1)) {
1283 lua_getfield(L
, -1, "paintEvent");
1289 lqtL_pushudata(L
, arg1
, "QPaintEvent*");
1290 if (lua_isfunction(L
, -1-2)) {
1291 lua_pcall(L
, 1+1, 2, 0);
1292 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1296 lua_settop(L
, oldtop
);
1297 this->QLineEdit::paintEvent(arg1
);
1299 lua_settop(L
, oldtop
);
1301 void LuaBinder
< QLineEdit
>::dragMoveEvent (QDragMoveEvent
* arg1
) {
1302 bool absorbed
= false;
1303 int oldtop
= lua_gettop(L
);
1304 lqtL_pushudata(L
, this, "QLineEdit*");
1305 if (lua_getmetatable(L
, -1)) {
1306 lua_getfield(L
, -1, "dragMoveEvent");
1312 lqtL_pushudata(L
, arg1
, "QDragMoveEvent*");
1313 if (lua_isfunction(L
, -1-2)) {
1314 lua_pcall(L
, 1+1, 2, 0);
1315 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1319 lua_settop(L
, oldtop
);
1320 this->QLineEdit::dragMoveEvent(arg1
);
1322 lua_settop(L
, oldtop
);
1324 void LuaBinder
< QLineEdit
>::focusInEvent (QFocusEvent
* arg1
) {
1325 bool absorbed
= false;
1326 int oldtop
= lua_gettop(L
);
1327 lqtL_pushudata(L
, this, "QLineEdit*");
1328 if (lua_getmetatable(L
, -1)) {
1329 lua_getfield(L
, -1, "focusInEvent");
1335 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1336 if (lua_isfunction(L
, -1-2)) {
1337 lua_pcall(L
, 1+1, 2, 0);
1338 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1342 lua_settop(L
, oldtop
);
1343 this->QLineEdit::focusInEvent(arg1
);
1345 lua_settop(L
, oldtop
);
1347 void LuaBinder
< QLineEdit
>::enabledChange (bool arg1
) {
1348 bool absorbed
= false;
1349 int oldtop
= lua_gettop(L
);
1350 lqtL_pushudata(L
, this, "QLineEdit*");
1351 if (lua_getmetatable(L
, -1)) {
1352 lua_getfield(L
, -1, "enabledChange");
1358 lua_pushboolean(L
, arg1
);
1359 if (lua_isfunction(L
, -1-2)) {
1360 lua_pcall(L
, 1+1, 2, 0);
1361 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1365 lua_settop(L
, oldtop
);
1366 this->QWidget::enabledChange(arg1
);
1368 lua_settop(L
, oldtop
);
1370 void LuaBinder
< QLineEdit
>::windowActivationChange (bool arg1
) {
1371 bool absorbed
= false;
1372 int oldtop
= lua_gettop(L
);
1373 lqtL_pushudata(L
, this, "QLineEdit*");
1374 if (lua_getmetatable(L
, -1)) {
1375 lua_getfield(L
, -1, "windowActivationChange");
1381 lua_pushboolean(L
, arg1
);
1382 if (lua_isfunction(L
, -1-2)) {
1383 lua_pcall(L
, 1+1, 2, 0);
1384 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1388 lua_settop(L
, oldtop
);
1389 this->QWidget::windowActivationChange(arg1
);
1391 lua_settop(L
, oldtop
);
1393 int LuaBinder
< QLineEdit
>::heightForWidth (int arg1
) const {
1394 bool absorbed
= false;
1395 int oldtop
= lua_gettop(L
);
1396 lqtL_pushudata(L
, this, "QLineEdit*");
1397 if (lua_getmetatable(L
, -1)) {
1398 lua_getfield(L
, -1, "heightForWidth");
1404 lua_pushinteger(L
, arg1
);
1405 if (lua_isfunction(L
, -1-2)) {
1406 lua_pcall(L
, 1+1, 2, 0);
1407 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1411 lua_settop(L
, oldtop
);
1412 return this->QWidget::heightForWidth(arg1
);
1414 int ret
= lua_tointeger(L
, -1);
1415 lua_settop(L
, oldtop
);
1418 void LuaBinder
< QLineEdit
>::mouseDoubleClickEvent (QMouseEvent
* arg1
) {
1419 bool absorbed
= false;
1420 int oldtop
= lua_gettop(L
);
1421 lqtL_pushudata(L
, this, "QLineEdit*");
1422 if (lua_getmetatable(L
, -1)) {
1423 lua_getfield(L
, -1, "mouseDoubleClickEvent");
1429 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1430 if (lua_isfunction(L
, -1-2)) {
1431 lua_pcall(L
, 1+1, 2, 0);
1432 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1436 lua_settop(L
, oldtop
);
1437 this->QLineEdit::mouseDoubleClickEvent(arg1
);
1439 lua_settop(L
, oldtop
);
1441 void LuaBinder
< QLineEdit
>::fontChange (const QFont
& arg1
) {
1442 bool absorbed
= false;
1443 int oldtop
= lua_gettop(L
);
1444 lqtL_pushudata(L
, this, "QLineEdit*");
1445 if (lua_getmetatable(L
, -1)) {
1446 lua_getfield(L
, -1, "fontChange");
1452 lqtL_pushudata(L
, &(arg1
), "QFont*");
1453 if (lua_isfunction(L
, -1-2)) {
1454 lua_pcall(L
, 1+1, 2, 0);
1455 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1459 lua_settop(L
, oldtop
);
1460 this->QWidget::fontChange(arg1
);
1462 lua_settop(L
, oldtop
);
1464 void LuaBinder
< QLineEdit
>::timerEvent (QTimerEvent
* arg1
) {
1465 bool absorbed
= false;
1466 int oldtop
= lua_gettop(L
);
1467 lqtL_pushudata(L
, this, "QLineEdit*");
1468 if (lua_getmetatable(L
, -1)) {
1469 lua_getfield(L
, -1, "timerEvent");
1475 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
1476 if (lua_isfunction(L
, -1-2)) {
1477 lua_pcall(L
, 1+1, 2, 0);
1478 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1482 lua_settop(L
, oldtop
);
1483 this->QObject::timerEvent(arg1
);
1485 lua_settop(L
, oldtop
);
1487 void LuaBinder
< QLineEdit
>::mouseMoveEvent (QMouseEvent
* arg1
) {
1488 bool absorbed
= false;
1489 int oldtop
= lua_gettop(L
);
1490 lqtL_pushudata(L
, this, "QLineEdit*");
1491 if (lua_getmetatable(L
, -1)) {
1492 lua_getfield(L
, -1, "mouseMoveEvent");
1498 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1499 if (lua_isfunction(L
, -1-2)) {
1500 lua_pcall(L
, 1+1, 2, 0);
1501 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1505 lua_settop(L
, oldtop
);
1506 this->QLineEdit::mouseMoveEvent(arg1
);
1508 lua_settop(L
, oldtop
);
1510 void LuaBinder
< QLineEdit
>::disconnectNotify (const char * arg1
) {
1511 bool absorbed
= false;
1512 int oldtop
= lua_gettop(L
);
1513 lqtL_pushudata(L
, this, "QLineEdit*");
1514 if (lua_getmetatable(L
, -1)) {
1515 lua_getfield(L
, -1, "disconnectNotify");
1521 lua_pushstring(L
, arg1
);
1522 if (lua_isfunction(L
, -1-2)) {
1523 lua_pcall(L
, 1+1, 2, 0);
1524 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1528 lua_settop(L
, oldtop
);
1529 this->QObject::disconnectNotify(arg1
);
1531 lua_settop(L
, oldtop
);
1533 void LuaBinder
< QLineEdit
>::childEvent (QChildEvent
* arg1
) {
1534 bool absorbed
= false;
1535 int oldtop
= lua_gettop(L
);
1536 lqtL_pushudata(L
, this, "QLineEdit*");
1537 if (lua_getmetatable(L
, -1)) {
1538 lua_getfield(L
, -1, "childEvent");
1544 lqtL_pushudata(L
, arg1
, "QChildEvent*");
1545 if (lua_isfunction(L
, -1-2)) {
1546 lua_pcall(L
, 1+1, 2, 0);
1547 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1551 lua_settop(L
, oldtop
);
1552 this->QObject::childEvent(arg1
);
1554 lua_settop(L
, oldtop
);
1556 void LuaBinder
< QLineEdit
>::focusOutEvent (QFocusEvent
* arg1
) {
1557 bool absorbed
= false;
1558 int oldtop
= lua_gettop(L
);
1559 lqtL_pushudata(L
, this, "QLineEdit*");
1560 if (lua_getmetatable(L
, -1)) {
1561 lua_getfield(L
, -1, "focusOutEvent");
1567 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1568 if (lua_isfunction(L
, -1-2)) {
1569 lua_pcall(L
, 1+1, 2, 0);
1570 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1574 lua_settop(L
, oldtop
);
1575 this->QLineEdit::focusOutEvent(arg1
);
1577 lua_settop(L
, oldtop
);
1579 int LuaBinder
< QLineEdit
>::metric (QPaintDevice::PaintDeviceMetric arg1
) const {
1580 bool absorbed
= false;
1581 int oldtop
= lua_gettop(L
);
1582 lqtL_pushudata(L
, this, "QLineEdit*");
1583 if (lua_getmetatable(L
, -1)) {
1584 lua_getfield(L
, -1, "metric");
1590 lqtL_pushenum(L
, arg1
, "QPaintDevice::PaintDeviceMetric");
1591 if (lua_isfunction(L
, -1-2)) {
1592 lua_pcall(L
, 1+1, 2, 0);
1593 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1597 lua_settop(L
, oldtop
);
1598 return this->QWidget::metric(arg1
);
1600 int ret
= lua_tointeger(L
, -1);
1601 lua_settop(L
, oldtop
);
1604 bool LuaBinder
< QLineEdit
>::focusNextPrevChild (bool arg1
) {
1605 bool absorbed
= false;
1606 int oldtop
= lua_gettop(L
);
1607 lqtL_pushudata(L
, this, "QLineEdit*");
1608 if (lua_getmetatable(L
, -1)) {
1609 lua_getfield(L
, -1, "focusNextPrevChild");
1615 lua_pushboolean(L
, arg1
);
1616 if (lua_isfunction(L
, -1-2)) {
1617 lua_pcall(L
, 1+1, 2, 0);
1618 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1622 lua_settop(L
, oldtop
);
1623 return this->QWidget::focusNextPrevChild(arg1
);
1625 bool ret
= (bool)lua_toboolean(L
, -1);
1626 lua_settop(L
, oldtop
);
1629 bool LuaBinder
< QLineEdit
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
1630 bool absorbed
= false;
1631 int oldtop
= lua_gettop(L
);
1632 lqtL_pushudata(L
, this, "QLineEdit*");
1633 if (lua_getmetatable(L
, -1)) {
1634 lua_getfield(L
, -1, "eventFilter");
1640 lqtL_pushudata(L
, arg1
, "QObject*");
1641 lqtL_pushudata(L
, arg2
, "QEvent*");
1642 if (lua_isfunction(L
, -2-2)) {
1643 lua_pcall(L
, 2+1, 2, 0);
1644 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1648 lua_settop(L
, oldtop
);
1649 return this->QObject::eventFilter(arg1
, arg2
);
1651 bool ret
= (bool)lua_toboolean(L
, -1);
1652 lua_settop(L
, oldtop
);
1655 void LuaBinder
< QLineEdit
>::inputMethodEvent (QInputMethodEvent
* arg1
) {
1656 bool absorbed
= false;
1657 int oldtop
= lua_gettop(L
);
1658 lqtL_pushudata(L
, this, "QLineEdit*");
1659 if (lua_getmetatable(L
, -1)) {
1660 lua_getfield(L
, -1, "inputMethodEvent");
1666 lqtL_pushudata(L
, arg1
, "QInputMethodEvent*");
1667 if (lua_isfunction(L
, -1-2)) {
1668 lua_pcall(L
, 1+1, 2, 0);
1669 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1673 lua_settop(L
, oldtop
);
1674 this->QLineEdit::inputMethodEvent(arg1
);
1676 lua_settop(L
, oldtop
);
1678 void LuaBinder
< QLineEdit
>::wheelEvent (QWheelEvent
* arg1
) {
1679 bool absorbed
= false;
1680 int oldtop
= lua_gettop(L
);
1681 lqtL_pushudata(L
, this, "QLineEdit*");
1682 if (lua_getmetatable(L
, -1)) {
1683 lua_getfield(L
, -1, "wheelEvent");
1689 lqtL_pushudata(L
, arg1
, "QWheelEvent*");
1690 if (lua_isfunction(L
, -1-2)) {
1691 lua_pcall(L
, 1+1, 2, 0);
1692 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1696 lua_settop(L
, oldtop
);
1697 this->QWidget::wheelEvent(arg1
);
1699 lua_settop(L
, oldtop
);
1701 void LuaBinder
< QLineEdit
>::resizeEvent (QResizeEvent
* arg1
) {
1702 bool absorbed
= false;
1703 int oldtop
= lua_gettop(L
);
1704 lqtL_pushudata(L
, this, "QLineEdit*");
1705 if (lua_getmetatable(L
, -1)) {
1706 lua_getfield(L
, -1, "resizeEvent");
1712 lqtL_pushudata(L
, arg1
, "QResizeEvent*");
1713 if (lua_isfunction(L
, -1-2)) {
1714 lua_pcall(L
, 1+1, 2, 0);
1715 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1719 lua_settop(L
, oldtop
);
1720 this->QWidget::resizeEvent(arg1
);
1722 lua_settop(L
, oldtop
);
1724 void LuaBinder
< QLineEdit
>::paletteChange (const QPalette
& arg1
) {
1725 bool absorbed
= false;
1726 int oldtop
= lua_gettop(L
);
1727 lqtL_pushudata(L
, this, "QLineEdit*");
1728 if (lua_getmetatable(L
, -1)) {
1729 lua_getfield(L
, -1, "paletteChange");
1735 lqtL_pushudata(L
, &(arg1
), "QPalette*");
1736 if (lua_isfunction(L
, -1-2)) {
1737 lua_pcall(L
, 1+1, 2, 0);
1738 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1742 lua_settop(L
, oldtop
);
1743 this->QWidget::paletteChange(arg1
);
1745 lua_settop(L
, oldtop
);
1747 void LuaBinder
< QLineEdit
>::languageChange () {
1748 bool absorbed
= false;
1749 int oldtop
= lua_gettop(L
);
1750 lqtL_pushudata(L
, this, "QLineEdit*");
1751 if (lua_getmetatable(L
, -1)) {
1752 lua_getfield(L
, -1, "languageChange");
1758 if (lua_isfunction(L
, -0-2)) {
1759 lua_pcall(L
, 0+1, 2, 0);
1760 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1764 lua_settop(L
, oldtop
);
1765 this->QWidget::languageChange();
1767 lua_settop(L
, oldtop
);
1769 bool LuaBinder
< QLineEdit
>::event (QEvent
* arg1
) {
1770 bool absorbed
= false;
1771 int oldtop
= lua_gettop(L
);
1772 lqtL_pushudata(L
, this, "QLineEdit*");
1773 if (lua_getmetatable(L
, -1)) {
1774 lua_getfield(L
, -1, "event");
1780 lqtL_pushudata(L
, arg1
, "QEvent*");
1781 if (lua_isfunction(L
, -1-2)) {
1782 lua_pcall(L
, 1+1, 2, 0);
1783 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1787 lua_settop(L
, oldtop
);
1788 return this->QLineEdit::event(arg1
);
1790 bool ret
= (bool)lua_toboolean(L
, -1);
1791 lua_settop(L
, oldtop
);
1794 void LuaBinder
< QLineEdit
>::hideEvent (QHideEvent
* arg1
) {
1795 bool absorbed
= false;
1796 int oldtop
= lua_gettop(L
);
1797 lqtL_pushudata(L
, this, "QLineEdit*");
1798 if (lua_getmetatable(L
, -1)) {
1799 lua_getfield(L
, -1, "hideEvent");
1805 lqtL_pushudata(L
, arg1
, "QHideEvent*");
1806 if (lua_isfunction(L
, -1-2)) {
1807 lua_pcall(L
, 1+1, 2, 0);
1808 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1812 lua_settop(L
, oldtop
);
1813 this->QWidget::hideEvent(arg1
);
1815 lua_settop(L
, oldtop
);
1817 void LuaBinder
< QLineEdit
>::connectNotify (const char * arg1
) {
1818 bool absorbed
= false;
1819 int oldtop
= lua_gettop(L
);
1820 lqtL_pushudata(L
, this, "QLineEdit*");
1821 if (lua_getmetatable(L
, -1)) {
1822 lua_getfield(L
, -1, "connectNotify");
1828 lua_pushstring(L
, arg1
);
1829 if (lua_isfunction(L
, -1-2)) {
1830 lua_pcall(L
, 1+1, 2, 0);
1831 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1835 lua_settop(L
, oldtop
);
1836 this->QObject::connectNotify(arg1
);
1838 lua_settop(L
, oldtop
);
1840 void LuaBinder
< QLineEdit
>::moveEvent (QMoveEvent
* arg1
) {
1841 bool absorbed
= false;
1842 int oldtop
= lua_gettop(L
);
1843 lqtL_pushudata(L
, this, "QLineEdit*");
1844 if (lua_getmetatable(L
, -1)) {
1845 lua_getfield(L
, -1, "moveEvent");
1851 lqtL_pushudata(L
, arg1
, "QMoveEvent*");
1852 if (lua_isfunction(L
, -1-2)) {
1853 lua_pcall(L
, 1+1, 2, 0);
1854 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1858 lua_settop(L
, oldtop
);
1859 this->QWidget::moveEvent(arg1
);
1861 lua_settop(L
, oldtop
);
1863 void LuaBinder
< QLineEdit
>::keyReleaseEvent (QKeyEvent
* arg1
) {
1864 bool absorbed
= false;
1865 int oldtop
= lua_gettop(L
);
1866 lqtL_pushudata(L
, this, "QLineEdit*");
1867 if (lua_getmetatable(L
, -1)) {
1868 lua_getfield(L
, -1, "keyReleaseEvent");
1874 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
1875 if (lua_isfunction(L
, -1-2)) {
1876 lua_pcall(L
, 1+1, 2, 0);
1877 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1881 lua_settop(L
, oldtop
);
1882 this->QWidget::keyReleaseEvent(arg1
);
1884 lua_settop(L
, oldtop
);
1886 void LuaBinder
< QLineEdit
>::leaveEvent (QEvent
* arg1
) {
1887 bool absorbed
= false;
1888 int oldtop
= lua_gettop(L
);
1889 lqtL_pushudata(L
, this, "QLineEdit*");
1890 if (lua_getmetatable(L
, -1)) {
1891 lua_getfield(L
, -1, "leaveEvent");
1897 lqtL_pushudata(L
, arg1
, "QEvent*");
1898 if (lua_isfunction(L
, -1-2)) {
1899 lua_pcall(L
, 1+1, 2, 0);
1900 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1904 lua_settop(L
, oldtop
);
1905 this->QWidget::leaveEvent(arg1
);
1907 lua_settop(L
, oldtop
);
1909 void LuaBinder
< QLineEdit
>::dropEvent (QDropEvent
* arg1
) {
1910 bool absorbed
= false;
1911 int oldtop
= lua_gettop(L
);
1912 lqtL_pushudata(L
, this, "QLineEdit*");
1913 if (lua_getmetatable(L
, -1)) {
1914 lua_getfield(L
, -1, "dropEvent");
1920 lqtL_pushudata(L
, arg1
, "QDropEvent*");
1921 if (lua_isfunction(L
, -1-2)) {
1922 lua_pcall(L
, 1+1, 2, 0);
1923 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1927 lua_settop(L
, oldtop
);
1928 this->QLineEdit::dropEvent(arg1
);
1930 lua_settop(L
, oldtop
);
1932 void LuaBinder
< QLineEdit
>::customEvent (QEvent
* arg1
) {
1933 bool absorbed
= false;
1934 int oldtop
= lua_gettop(L
);
1935 lqtL_pushudata(L
, this, "QLineEdit*");
1936 if (lua_getmetatable(L
, -1)) {
1937 lua_getfield(L
, -1, "customEvent");
1943 lqtL_pushudata(L
, arg1
, "QEvent*");
1944 if (lua_isfunction(L
, -1-2)) {
1945 lua_pcall(L
, 1+1, 2, 0);
1946 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1950 lua_settop(L
, oldtop
);
1951 this->QObject::customEvent(arg1
);
1953 lua_settop(L
, oldtop
);
1955 LuaBinder
< QLineEdit
>:: ~LuaBinder
< QLineEdit
> () {
1956 int oldtop
= lua_gettop(L
);
1957 lqtL_pushudata(L
, this, "QLineEdit*");
1958 lua_getfield(L
, -1, "~QLineEdit");
1960 if (lua_isfunction(L
, -1)) {
1962 lua_pcall(L
, 1, 1, 0);
1965 lua_settop(L
, oldtop
);
1967 int LuaBinder
< QLineEdit
>::lqt_pushenum_EchoMode (lua_State
*L
) {
1969 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1970 if (!lua_istable(L
, -1)) {
1973 lua_pushvalue(L
, -1);
1974 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1977 enum_table
= lua_gettop(L
);
1978 lua_pushstring(L
, "Normal");
1979 lua_rawseti(L
, enum_table
, 0);
1980 lua_pushinteger(L
, 0);
1981 lua_setfield(L
, enum_table
, "Normal");
1982 lua_pushstring(L
, "NoEcho");
1983 lua_rawseti(L
, enum_table
, 1);
1984 lua_pushinteger(L
, 1);
1985 lua_setfield(L
, enum_table
, "NoEcho");
1986 lua_pushstring(L
, "Password");
1987 lua_rawseti(L
, enum_table
, 2);
1988 lua_pushinteger(L
, 2);
1989 lua_setfield(L
, enum_table
, "Password");
1990 lua_pushstring(L
, "PasswordEchoOnEdit");
1991 lua_rawseti(L
, enum_table
, 3);
1992 lua_pushinteger(L
, 3);
1993 lua_setfield(L
, enum_table
, "PasswordEchoOnEdit");
1994 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::lqt_pushenum_EchoMode_QFLAGS_CREATOR
);
1995 lua_setfield(L
, enum_table
, "QFlags");
1996 lua_pushvalue(L
, -1);
1997 lua_setfield(L
, -3, "QLineEdit::EchoMode");
2001 int LuaBinder
< QLineEdit
>::lqt_pushenum_EchoMode_QFLAGS_CREATOR (lua_State
*L
) {
2002 int argn
= lua_gettop(L
);
2004 void *p
= lua_newuserdata(L
, sizeof(QFlags
<QLineEdit::EchoMode
>*) + sizeof(QFlags
<QLineEdit::EchoMode
>));
2005 QFlags
<QLineEdit::EchoMode
> *fl
= static_cast<QFlags
<QLineEdit::EchoMode
>*>( static_cast<void*>(&static_cast<QFlags
<QLineEdit::EchoMode
>**>(p
)[1]) );
2007 for (i
=1;i
<=argn
;i
++) {
2008 *fl
|= static_cast<QLineEdit::EchoMode
>(lqtL_toenum(L
, i
, "QLineEdit::EchoMode"));
2010 if (luaL_newmetatable(L
, "QFlags<QLineEdit::EchoMode>*")) {
2011 lua_pushstring(L
, "QFlags<QLineEdit::EchoMode>*");
2012 lua_setfield(L
, -2, "__qtype");
2014 lua_setmetatable(L
, -2);
2017 int luaopen_QLineEdit (lua_State
*L
) {
2018 if (luaL_newmetatable(L
, "QLineEdit*")) {
2019 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setValidator
);
2020 lua_setfield(L
, -2, "setValidator");
2021 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__inputMask
);
2022 lua_setfield(L
, -2, "inputMask");
2023 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__createStandardContextMenu
);
2024 lua_setfield(L
, -2, "createStandardContextMenu");
2025 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__sizeHint
);
2026 lua_setfield(L
, -2, "sizeHint");
2027 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__validator
);
2028 lua_setfield(L
, -2, "validator");
2029 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorWordBackward
);
2030 lua_setfield(L
, -2, "cursorWordBackward");
2031 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cut
);
2032 lua_setfield(L
, -2, "cut");
2033 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__hasSelectedText
);
2034 lua_setfield(L
, -2, "hasSelectedText");
2035 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__copy
);
2036 lua_setfield(L
, -2, "copy");
2037 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__home
);
2038 lua_setfield(L
, -2, "home");
2039 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__trUtf8
);
2040 lua_setfield(L
, -2, "trUtf8");
2041 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorWordForward
);
2042 lua_setfield(L
, -2, "cursorWordForward");
2043 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__tr
);
2044 lua_setfield(L
, -2, "tr");
2045 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorPositionAt
);
2046 lua_setfield(L
, -2, "cursorPositionAt");
2047 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__isReadOnly
);
2048 lua_setfield(L
, -2, "isReadOnly");
2049 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__insert
);
2050 lua_setfield(L
, -2, "insert");
2051 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setMaxLength
);
2052 lua_setfield(L
, -2, "setMaxLength");
2053 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__text
);
2054 lua_setfield(L
, -2, "text");
2055 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__event
);
2056 lua_setfield(L
, -2, "event");
2057 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__isModified
);
2058 lua_setfield(L
, -2, "isModified");
2059 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__hasFrame
);
2060 lua_setfield(L
, -2, "hasFrame");
2061 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setCursorPosition
);
2062 lua_setfield(L
, -2, "setCursorPosition");
2063 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__echoMode
);
2064 lua_setfield(L
, -2, "echoMode");
2065 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__isUndoAvailable
);
2066 lua_setfield(L
, -2, "isUndoAvailable");
2067 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorBackward
);
2068 lua_setfield(L
, -2, "cursorBackward");
2069 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setSelection
);
2070 lua_setfield(L
, -2, "setSelection");
2071 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setReadOnly
);
2072 lua_setfield(L
, -2, "setReadOnly");
2073 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setModified
);
2074 lua_setfield(L
, -2, "setModified");
2075 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setDragEnabled
);
2076 lua_setfield(L
, -2, "setDragEnabled");
2077 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorPosition
);
2078 lua_setfield(L
, -2, "cursorPosition");
2079 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__isRedoAvailable
);
2080 lua_setfield(L
, -2, "isRedoAvailable");
2081 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__del
);
2082 lua_setfield(L
, -2, "del");
2083 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__displayText
);
2084 lua_setfield(L
, -2, "displayText");
2085 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setText
);
2086 lua_setfield(L
, -2, "setText");
2087 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__minimumSizeHint
);
2088 lua_setfield(L
, -2, "minimumSizeHint");
2089 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__hasAcceptableInput
);
2090 lua_setfield(L
, -2, "hasAcceptableInput");
2091 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__selectionStart
);
2092 lua_setfield(L
, -2, "selectionStart");
2093 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__backspace
);
2094 lua_setfield(L
, -2, "backspace");
2095 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setEchoMode
);
2096 lua_setfield(L
, -2, "setEchoMode");
2097 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__end
);
2098 lua_setfield(L
, -2, "end");
2099 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__selectedText
);
2100 lua_setfield(L
, -2, "selectedText");
2101 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setCompleter
);
2102 lua_setfield(L
, -2, "setCompleter");
2103 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__metaObject
);
2104 lua_setfield(L
, -2, "metaObject");
2105 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__new
);
2106 lua_setfield(L
, -2, "new");
2107 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__inputMethodQuery
);
2108 lua_setfield(L
, -2, "inputMethodQuery");
2109 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__delete
);
2110 lua_setfield(L
, -2, "delete");
2111 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__redo
);
2112 lua_setfield(L
, -2, "redo");
2113 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__deselect
);
2114 lua_setfield(L
, -2, "deselect");
2115 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__completer
);
2116 lua_setfield(L
, -2, "completer");
2117 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setInputMask
);
2118 lua_setfield(L
, -2, "setInputMask");
2119 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__clear
);
2120 lua_setfield(L
, -2, "clear");
2121 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__maxLength
);
2122 lua_setfield(L
, -2, "maxLength");
2123 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setFrame
);
2124 lua_setfield(L
, -2, "setFrame");
2125 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__selectAll
);
2126 lua_setfield(L
, -2, "selectAll");
2127 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__alignment
);
2128 lua_setfield(L
, -2, "alignment");
2129 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorForward
);
2130 lua_setfield(L
, -2, "cursorForward");
2131 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__undo
);
2132 lua_setfield(L
, -2, "undo");
2133 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__paste
);
2134 lua_setfield(L
, -2, "paste");
2135 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__dragEnabled
);
2136 lua_setfield(L
, -2, "dragEnabled");
2137 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setAlignment
);
2138 lua_setfield(L
, -2, "setAlignment");
2139 LuaBinder
< QLineEdit
>::lqt_pushenum_EchoMode(L
);
2140 lua_setfield(L
, -2, "EchoMode");
2142 lua_pushboolean(L
, 1);
2143 lua_setfield(L
, -2, "QWidget*");
2144 lua_pushboolean(L
, 0);
2145 lua_setfield(L
, -2, "QObject*");
2146 lua_pushboolean(L
, 0);
2147 lua_setfield(L
, -2, "QPaintDevice*");
2148 lua_setfield(L
, -2, "__base");
2149 lua_pushcfunction(L
, lqtL_newindex
);
2150 lua_setfield(L
, -2, "__newindex");
2151 lua_pushcfunction(L
, lqtL_index
);
2152 lua_setfield(L
, -2, "__index");
2153 lua_pushcfunction(L
, lqtL_gc
);
2154 lua_setfield(L
, -2, "__gc");
2155 lua_pushstring(L
, "QLineEdit");
2156 lua_setfield(L
, -2, "__qtype");
2157 lua_setglobal(L
, "QLineEdit");