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: 0x8afd40;
135 score
[1] -= premium
*premium
;
137 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
140 score
[1] += premium
-1; // table: 0x203eb20;
142 score
[1] -= premium
*premium
;
145 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
148 score
[2] += premium
-1; // table: 0xfdf7d0;
150 score
[2] -= premium
*premium
;
152 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
155 score
[2] += premium
-1; // table: 0xfdf380;
157 score
[2] -= premium
*premium
;
159 if (lua_isnumber(L
, 3)) {
162 score
[2] += premium
-1; // table: 0x2149f30;
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;
176 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorWordForward (lua_State
*L
) {
177 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
179 lua_pushstring(L
, "trying to reference deleted pointer");
183 bool arg1
= (bool)lua_toboolean(L
, 2);
184 __lua__obj
->QLineEdit::cursorWordForward(arg1
);
187 int LuaBinder
< QLineEdit
>::__LuaWrapCall__tr__OverloadedVersion__1 (lua_State
*L
) {
188 const char * arg1
= lua_tostring(L
, 1);
189 const char * arg2
= (lua_type(L
, 2)==LUA_TSTRING
)?lua_tostring(L
, 2):static_cast< const char * >(0);
190 QString ret
= QLineEdit::tr(arg1
, arg2
);
191 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
194 int LuaBinder
< QLineEdit
>::__LuaWrapCall__tr__OverloadedVersion__2 (lua_State
*L
) {
195 const char * arg1
= lua_tostring(L
, 1);
196 const char * arg2
= lua_tostring(L
, 2);
197 int arg3
= lua_tointeger(L
, 3);
198 QString ret
= QLineEdit::tr(arg1
, arg2
, arg3
);
199 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
202 int LuaBinder
< QLineEdit
>::__LuaWrapCall__tr (lua_State
*L
) {
204 const int premium
= 11+lua_gettop(L
);
206 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
209 score
[1] += premium
-1; // table: 0x203e7d0;
211 score
[1] -= premium
*premium
;
213 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
216 score
[1] += premium
-1; // table: 0x6ea380;
218 score
[1] -= premium
*premium
;
221 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
224 score
[2] += premium
-1; // table: 0x1743c70;
226 score
[2] -= premium
*premium
;
228 if ((lua_type(L
, 2)==LUA_TSTRING
)) {
231 score
[2] += premium
-1; // table: 0x1743ec0;
233 score
[2] -= premium
*premium
;
235 if (lua_isnumber(L
, 3)) {
238 score
[2] += premium
-1; // table: 0x1f21400;
240 score
[2] -= premium
*premium
;
243 for (int i
=1;i
<=2;i
++) {
244 if (score
[best
] < score
[i
]) { best
= i
; }
247 case 1: return __LuaWrapCall__tr__OverloadedVersion__1(L
); break;
248 case 2: return __LuaWrapCall__tr__OverloadedVersion__2(L
); break;
252 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorPositionAt (lua_State
*L
) {
253 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
255 lua_pushstring(L
, "trying to reference deleted pointer");
259 const QPoint
& arg1
= **static_cast<QPoint
**>(lqtL_checkudata(L
, 2, "QPoint*"));
260 int ret
= __lua__obj
->QLineEdit::cursorPositionAt(arg1
);
261 lua_pushinteger(L
, ret
);
264 int LuaBinder
< QLineEdit
>::__LuaWrapCall__isReadOnly (lua_State
*L
) {
265 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
267 lua_pushstring(L
, "trying to reference deleted pointer");
271 bool ret
= __lua__obj
->QLineEdit::isReadOnly();
272 lua_pushboolean(L
, ret
);
275 int LuaBinder
< QLineEdit
>::__LuaWrapCall__insert (lua_State
*L
) {
276 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
278 lua_pushstring(L
, "trying to reference deleted pointer");
282 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
283 __lua__obj
->QLineEdit::insert(arg1
);
286 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setMaxLength (lua_State
*L
) {
287 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
289 lua_pushstring(L
, "trying to reference deleted pointer");
293 int arg1
= lua_tointeger(L
, 2);
294 __lua__obj
->QLineEdit::setMaxLength(arg1
);
297 int LuaBinder
< QLineEdit
>::__LuaWrapCall__text (lua_State
*L
) {
298 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
300 lua_pushstring(L
, "trying to reference deleted pointer");
304 QString ret
= __lua__obj
->QLineEdit::text();
305 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
308 int LuaBinder
< QLineEdit
>::__LuaWrapCall__event (lua_State
*L
) {
309 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
311 lua_pushstring(L
, "trying to reference deleted pointer");
315 QEvent
* arg1
= *static_cast<QEvent
**>(lqtL_checkudata(L
, 2, "QEvent*"));
316 bool ret
= __lua__obj
->QLineEdit::event(arg1
);
317 lua_pushboolean(L
, ret
);
320 int LuaBinder
< QLineEdit
>::__LuaWrapCall__isModified (lua_State
*L
) {
321 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
323 lua_pushstring(L
, "trying to reference deleted pointer");
327 bool ret
= __lua__obj
->QLineEdit::isModified();
328 lua_pushboolean(L
, ret
);
331 int LuaBinder
< QLineEdit
>::__LuaWrapCall__hasFrame (lua_State
*L
) {
332 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
334 lua_pushstring(L
, "trying to reference deleted pointer");
338 bool ret
= __lua__obj
->QLineEdit::hasFrame();
339 lua_pushboolean(L
, ret
);
342 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setCursorPosition (lua_State
*L
) {
343 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
345 lua_pushstring(L
, "trying to reference deleted pointer");
349 int arg1
= lua_tointeger(L
, 2);
350 __lua__obj
->QLineEdit::setCursorPosition(arg1
);
353 int LuaBinder
< QLineEdit
>::__LuaWrapCall__echoMode (lua_State
*L
) {
354 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
356 lua_pushstring(L
, "trying to reference deleted pointer");
360 QLineEdit::EchoMode ret
= __lua__obj
->QLineEdit::echoMode();
361 lqtL_pushenum(L
, ret
, "QLineEdit::EchoMode");
364 int LuaBinder
< QLineEdit
>::__LuaWrapCall__isUndoAvailable (lua_State
*L
) {
365 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
367 lua_pushstring(L
, "trying to reference deleted pointer");
371 bool ret
= __lua__obj
->QLineEdit::isUndoAvailable();
372 lua_pushboolean(L
, ret
);
375 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorBackward (lua_State
*L
) {
376 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
378 lua_pushstring(L
, "trying to reference deleted pointer");
382 bool arg1
= (bool)lua_toboolean(L
, 2);
383 int arg2
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(1);
384 __lua__obj
->QLineEdit::cursorBackward(arg1
, arg2
);
387 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setSelection (lua_State
*L
) {
388 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
390 lua_pushstring(L
, "trying to reference deleted pointer");
394 int arg1
= lua_tointeger(L
, 2);
395 int arg2
= lua_tointeger(L
, 3);
396 __lua__obj
->QLineEdit::setSelection(arg1
, arg2
);
399 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setReadOnly (lua_State
*L
) {
400 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
402 lua_pushstring(L
, "trying to reference deleted pointer");
406 bool arg1
= (bool)lua_toboolean(L
, 2);
407 __lua__obj
->QLineEdit::setReadOnly(arg1
);
410 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setModified (lua_State
*L
) {
411 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
413 lua_pushstring(L
, "trying to reference deleted pointer");
417 bool arg1
= (bool)lua_toboolean(L
, 2);
418 __lua__obj
->QLineEdit::setModified(arg1
);
421 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setDragEnabled (lua_State
*L
) {
422 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
424 lua_pushstring(L
, "trying to reference deleted pointer");
428 bool arg1
= (bool)lua_toboolean(L
, 2);
429 __lua__obj
->QLineEdit::setDragEnabled(arg1
);
432 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorPosition (lua_State
*L
) {
433 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
435 lua_pushstring(L
, "trying to reference deleted pointer");
439 int ret
= __lua__obj
->QLineEdit::cursorPosition();
440 lua_pushinteger(L
, ret
);
443 int LuaBinder
< QLineEdit
>::__LuaWrapCall__isRedoAvailable (lua_State
*L
) {
444 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
446 lua_pushstring(L
, "trying to reference deleted pointer");
450 bool ret
= __lua__obj
->QLineEdit::isRedoAvailable();
451 lua_pushboolean(L
, ret
);
454 int LuaBinder
< QLineEdit
>::__LuaWrapCall__del (lua_State
*L
) {
455 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
457 lua_pushstring(L
, "trying to reference deleted pointer");
461 __lua__obj
->QLineEdit::del();
464 int LuaBinder
< QLineEdit
>::__LuaWrapCall__displayText (lua_State
*L
) {
465 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
467 lua_pushstring(L
, "trying to reference deleted pointer");
471 QString ret
= __lua__obj
->QLineEdit::displayText();
472 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
475 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setText (lua_State
*L
) {
476 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
478 lua_pushstring(L
, "trying to reference deleted pointer");
482 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
483 __lua__obj
->QLineEdit::setText(arg1
);
486 int LuaBinder
< QLineEdit
>::__LuaWrapCall__minimumSizeHint (lua_State
*L
) {
487 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
489 lua_pushstring(L
, "trying to reference deleted pointer");
493 QSize ret
= __lua__obj
->QLineEdit::minimumSizeHint();
494 lqtL_passudata(L
, new QSize(ret
), "QSize*");
497 int LuaBinder
< QLineEdit
>::__LuaWrapCall__hasAcceptableInput (lua_State
*L
) {
498 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
500 lua_pushstring(L
, "trying to reference deleted pointer");
504 bool ret
= __lua__obj
->QLineEdit::hasAcceptableInput();
505 lua_pushboolean(L
, ret
);
508 int LuaBinder
< QLineEdit
>::__LuaWrapCall__selectionStart (lua_State
*L
) {
509 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
511 lua_pushstring(L
, "trying to reference deleted pointer");
515 int ret
= __lua__obj
->QLineEdit::selectionStart();
516 lua_pushinteger(L
, ret
);
519 int LuaBinder
< QLineEdit
>::__LuaWrapCall__backspace (lua_State
*L
) {
520 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
522 lua_pushstring(L
, "trying to reference deleted pointer");
526 __lua__obj
->QLineEdit::backspace();
529 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setEchoMode (lua_State
*L
) {
530 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
532 lua_pushstring(L
, "trying to reference deleted pointer");
536 QLineEdit::EchoMode arg1
= static_cast<QLineEdit::EchoMode
>(lqtL_toenum(L
, 2, "QLineEdit::EchoMode"));
537 __lua__obj
->QLineEdit::setEchoMode(arg1
);
540 int LuaBinder
< QLineEdit
>::__LuaWrapCall__end (lua_State
*L
) {
541 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
543 lua_pushstring(L
, "trying to reference deleted pointer");
547 bool arg1
= (bool)lua_toboolean(L
, 2);
548 __lua__obj
->QLineEdit::end(arg1
);
551 int LuaBinder
< QLineEdit
>::__LuaWrapCall__selectedText (lua_State
*L
) {
552 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
554 lua_pushstring(L
, "trying to reference deleted pointer");
558 QString ret
= __lua__obj
->QLineEdit::selectedText();
559 lua_pushlstring(L
, ret
.toAscii().data(), ret
.toAscii().size());
562 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setCompleter (lua_State
*L
) {
563 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
565 lua_pushstring(L
, "trying to reference deleted pointer");
569 QCompleter
* arg1
= *static_cast<QCompleter
**>(lqtL_checkudata(L
, 2, "QCompleter*"));
570 __lua__obj
->QLineEdit::setCompleter(arg1
);
573 int LuaBinder
< QLineEdit
>::__LuaWrapCall__metaObject (lua_State
*L
) {
574 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
576 lua_pushstring(L
, "trying to reference deleted pointer");
580 const QMetaObject
* ret
= __lua__obj
->QLineEdit::metaObject();
581 lqtL_pushudata(L
, ret
, "QMetaObject*");
584 int LuaBinder
< QLineEdit
>::__LuaWrapCall__new__OverloadedVersion__1 (lua_State
*L
) {
585 QWidget
* arg1
= lqtL_testudata(L
, 1, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 1, "QWidget*")):static_cast< QWidget
* >(0);
586 QLineEdit
* ret
= new LuaBinder
< QLineEdit
>(L
, arg1
);
587 lqtL_pushudata(L
, ret
, "QLineEdit*");
590 int LuaBinder
< QLineEdit
>::__LuaWrapCall__new__OverloadedVersion__2 (lua_State
*L
) {
591 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 1), lua_objlen(L
, 1));
592 QWidget
* arg2
= lqtL_testudata(L
, 2, "QWidget*")?*static_cast<QWidget
**>(lqtL_checkudata(L
, 2, "QWidget*")):static_cast< QWidget
* >(0);
593 QLineEdit
* ret
= new LuaBinder
< QLineEdit
>(L
, arg1
, arg2
);
594 lqtL_pushudata(L
, ret
, "QLineEdit*");
597 int LuaBinder
< QLineEdit
>::__LuaWrapCall__new (lua_State
*L
) {
599 const int premium
= 11+lua_gettop(L
);
601 if (lqtL_testudata(L
, 1, "QWidget*")) {
604 score
[1] += premium
-1; // table: 0x1bc6070;
606 score
[1] -= premium
*premium
;
609 if ((lua_type(L
, 1)==LUA_TSTRING
)) {
612 score
[2] += premium
-1; // table: 0x1b05c80;
614 score
[2] -= premium
*premium
;
616 if (lqtL_testudata(L
, 2, "QWidget*")) {
619 score
[2] += premium
-1; // table: 0x186b5d0;
621 score
[2] -= premium
*premium
;
624 for (int i
=1;i
<=2;i
++) {
625 if (score
[best
] < score
[i
]) { best
= i
; }
628 case 1: return __LuaWrapCall__new__OverloadedVersion__1(L
); break;
629 case 2: return __LuaWrapCall__new__OverloadedVersion__2(L
); break;
633 int LuaBinder
< QLineEdit
>::__LuaWrapCall__inputMethodQuery (lua_State
*L
) {
634 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
636 lua_pushstring(L
, "trying to reference deleted pointer");
640 Qt::InputMethodQuery arg1
= static_cast<Qt::InputMethodQuery
>(lqtL_toenum(L
, 2, "Qt::InputMethodQuery"));
641 QVariant ret
= __lua__obj
->QLineEdit::inputMethodQuery(arg1
);
642 lqtL_passudata(L
, new QVariant(ret
), "QVariant*");
645 int LuaBinder
< QLineEdit
>::__LuaWrapCall__delete (lua_State
*L
) {
646 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
648 lua_pushstring(L
, "trying to reference deleted pointer");
656 int LuaBinder
< QLineEdit
>::__LuaWrapCall__redo (lua_State
*L
) {
657 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
659 lua_pushstring(L
, "trying to reference deleted pointer");
663 __lua__obj
->QLineEdit::redo();
666 int LuaBinder
< QLineEdit
>::__LuaWrapCall__deselect (lua_State
*L
) {
667 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
669 lua_pushstring(L
, "trying to reference deleted pointer");
673 __lua__obj
->QLineEdit::deselect();
676 int LuaBinder
< QLineEdit
>::__LuaWrapCall__completer (lua_State
*L
) {
677 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
679 lua_pushstring(L
, "trying to reference deleted pointer");
683 QCompleter
* ret
= __lua__obj
->QLineEdit::completer();
684 lqtL_pushudata(L
, ret
, "QCompleter*");
687 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setInputMask (lua_State
*L
) {
688 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
690 lua_pushstring(L
, "trying to reference deleted pointer");
694 const QString
& arg1
= QString::fromAscii(lua_tostring(L
, 2), lua_objlen(L
, 2));
695 __lua__obj
->QLineEdit::setInputMask(arg1
);
698 int LuaBinder
< QLineEdit
>::__LuaWrapCall__clear (lua_State
*L
) {
699 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
701 lua_pushstring(L
, "trying to reference deleted pointer");
705 __lua__obj
->QLineEdit::clear();
708 int LuaBinder
< QLineEdit
>::__LuaWrapCall__maxLength (lua_State
*L
) {
709 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
711 lua_pushstring(L
, "trying to reference deleted pointer");
715 int ret
= __lua__obj
->QLineEdit::maxLength();
716 lua_pushinteger(L
, ret
);
719 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setFrame (lua_State
*L
) {
720 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
722 lua_pushstring(L
, "trying to reference deleted pointer");
726 bool arg1
= (bool)lua_toboolean(L
, 2);
727 __lua__obj
->QLineEdit::setFrame(arg1
);
730 int LuaBinder
< QLineEdit
>::__LuaWrapCall__selectAll (lua_State
*L
) {
731 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
733 lua_pushstring(L
, "trying to reference deleted pointer");
737 __lua__obj
->QLineEdit::selectAll();
740 int LuaBinder
< QLineEdit
>::__LuaWrapCall__alignment (lua_State
*L
) {
741 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
743 lua_pushstring(L
, "trying to reference deleted pointer");
747 QFlags
<Qt::AlignmentFlag
> ret
= __lua__obj
->QLineEdit::alignment();
748 lqtL_passudata(L
, new QFlags
<Qt::AlignmentFlag
>(ret
), "QFlags<Qt::AlignmentFlag>*");
751 int LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorForward (lua_State
*L
) {
752 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
754 lua_pushstring(L
, "trying to reference deleted pointer");
758 bool arg1
= (bool)lua_toboolean(L
, 2);
759 int arg2
= lua_isnumber(L
, 3)?lua_tointeger(L
, 3):static_cast< int >(1);
760 __lua__obj
->QLineEdit::cursorForward(arg1
, arg2
);
763 int LuaBinder
< QLineEdit
>::__LuaWrapCall__undo (lua_State
*L
) {
764 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
766 lua_pushstring(L
, "trying to reference deleted pointer");
770 __lua__obj
->QLineEdit::undo();
773 int LuaBinder
< QLineEdit
>::__LuaWrapCall__paste (lua_State
*L
) {
774 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
776 lua_pushstring(L
, "trying to reference deleted pointer");
780 __lua__obj
->QLineEdit::paste();
783 int LuaBinder
< QLineEdit
>::__LuaWrapCall__dragEnabled (lua_State
*L
) {
784 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
786 lua_pushstring(L
, "trying to reference deleted pointer");
790 bool ret
= __lua__obj
->QLineEdit::dragEnabled();
791 lua_pushboolean(L
, ret
);
794 int LuaBinder
< QLineEdit
>::__LuaWrapCall__setAlignment (lua_State
*L
) {
795 QLineEdit
*& __lua__obj
= *static_cast<QLineEdit
**>(lqtL_checkudata(L
, 1, "QLineEdit*"));
797 lua_pushstring(L
, "trying to reference deleted pointer");
801 QFlags
<Qt::AlignmentFlag
> arg1
= **static_cast<QFlags
<Qt::AlignmentFlag
>**>(lqtL_checkudata(L
, 2, "QFlags<Qt::AlignmentFlag>*"));
802 __lua__obj
->QLineEdit::setAlignment(arg1
);
805 void LuaBinder
< QLineEdit
>::styleChange (QStyle
& arg1
) {
806 bool absorbed
= false;
807 int oldtop
= lua_gettop(L
);
808 lqtL_pushudata(L
, this, "QLineEdit*");
809 if (lua_getmetatable(L
, -1)) {
810 lua_getfield(L
, -1, "styleChange");
816 lqtL_pushudata(L
, &(arg1
), "QStyle*");
817 if (lua_isfunction(L
, -1-2)) {
818 lua_pcall(L
, 1+1, 2, 0);
819 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
823 lua_settop(L
, oldtop
);
824 this->QWidget::styleChange(arg1
);
826 lua_settop(L
, oldtop
);
828 void LuaBinder
< QLineEdit
>::mouseReleaseEvent (QMouseEvent
* arg1
) {
829 bool absorbed
= false;
830 int oldtop
= lua_gettop(L
);
831 lqtL_pushudata(L
, this, "QLineEdit*");
832 if (lua_getmetatable(L
, -1)) {
833 lua_getfield(L
, -1, "mouseReleaseEvent");
839 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
840 if (lua_isfunction(L
, -1-2)) {
841 lua_pcall(L
, 1+1, 2, 0);
842 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
846 lua_settop(L
, oldtop
);
847 this->QLineEdit::mouseReleaseEvent(arg1
);
849 lua_settop(L
, oldtop
);
851 void LuaBinder
< QLineEdit
>::keyPressEvent (QKeyEvent
* arg1
) {
852 bool absorbed
= false;
853 int oldtop
= lua_gettop(L
);
854 lqtL_pushudata(L
, this, "QLineEdit*");
855 if (lua_getmetatable(L
, -1)) {
856 lua_getfield(L
, -1, "keyPressEvent");
862 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
863 if (lua_isfunction(L
, -1-2)) {
864 lua_pcall(L
, 1+1, 2, 0);
865 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
869 lua_settop(L
, oldtop
);
870 this->QLineEdit::keyPressEvent(arg1
);
872 lua_settop(L
, oldtop
);
874 void LuaBinder
< QLineEdit
>::contextMenuEvent (QContextMenuEvent
* arg1
) {
875 bool absorbed
= false;
876 int oldtop
= lua_gettop(L
);
877 lqtL_pushudata(L
, this, "QLineEdit*");
878 if (lua_getmetatable(L
, -1)) {
879 lua_getfield(L
, -1, "contextMenuEvent");
885 lqtL_pushudata(L
, arg1
, "QContextMenuEvent*");
886 if (lua_isfunction(L
, -1-2)) {
887 lua_pcall(L
, 1+1, 2, 0);
888 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
892 lua_settop(L
, oldtop
);
893 this->QLineEdit::contextMenuEvent(arg1
);
895 lua_settop(L
, oldtop
);
897 int LuaBinder
< QLineEdit
>::devType () const {
898 bool absorbed
= false;
899 int oldtop
= lua_gettop(L
);
900 lqtL_pushudata(L
, this, "QLineEdit*");
901 if (lua_getmetatable(L
, -1)) {
902 lua_getfield(L
, -1, "devType");
908 if (lua_isfunction(L
, -0-2)) {
909 lua_pcall(L
, 0+1, 2, 0);
910 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
914 lua_settop(L
, oldtop
);
915 return this->QWidget::devType();
917 int ret
= lua_tointeger(L
, -1);
918 lua_settop(L
, oldtop
);
921 void LuaBinder
< QLineEdit
>::setVisible (bool arg1
) {
922 bool absorbed
= false;
923 int oldtop
= lua_gettop(L
);
924 lqtL_pushudata(L
, this, "QLineEdit*");
925 if (lua_getmetatable(L
, -1)) {
926 lua_getfield(L
, -1, "setVisible");
932 lua_pushboolean(L
, arg1
);
933 if (lua_isfunction(L
, -1-2)) {
934 lua_pcall(L
, 1+1, 2, 0);
935 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
939 lua_settop(L
, oldtop
);
940 this->QWidget::setVisible(arg1
);
942 lua_settop(L
, oldtop
);
944 QVariant LuaBinder
< QLineEdit
>::inputMethodQuery (Qt::InputMethodQuery arg1
) const {
945 bool absorbed
= false;
946 int oldtop
= lua_gettop(L
);
947 lqtL_pushudata(L
, this, "QLineEdit*");
948 if (lua_getmetatable(L
, -1)) {
949 lua_getfield(L
, -1, "inputMethodQuery");
955 lqtL_pushenum(L
, arg1
, "Qt::InputMethodQuery");
956 if (lua_isfunction(L
, -1-2)) {
957 lua_pcall(L
, 1+1, 2, 0);
958 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
962 lua_settop(L
, oldtop
);
963 return this->QLineEdit::inputMethodQuery(arg1
);
965 QVariant ret
= **static_cast<QVariant
**>(lqtL_checkudata(L
, -1, "QVariant*"));
966 lua_settop(L
, oldtop
);
969 QPaintEngine
* LuaBinder
< QLineEdit
>::paintEngine () const {
970 bool absorbed
= false;
971 int oldtop
= lua_gettop(L
);
972 lqtL_pushudata(L
, this, "QLineEdit*");
973 if (lua_getmetatable(L
, -1)) {
974 lua_getfield(L
, -1, "paintEngine");
980 if (lua_isfunction(L
, -0-2)) {
981 lua_pcall(L
, 0+1, 2, 0);
982 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
986 lua_settop(L
, oldtop
);
987 return this->QWidget::paintEngine();
989 QPaintEngine
* ret
= *static_cast<QPaintEngine
**>(lqtL_checkudata(L
, -1, "QPaintEngine*"));
990 lua_settop(L
, oldtop
);
993 void LuaBinder
< QLineEdit
>::dragLeaveEvent (QDragLeaveEvent
* arg1
) {
994 bool absorbed
= false;
995 int oldtop
= lua_gettop(L
);
996 lqtL_pushudata(L
, this, "QLineEdit*");
997 if (lua_getmetatable(L
, -1)) {
998 lua_getfield(L
, -1, "dragLeaveEvent");
1004 lqtL_pushudata(L
, arg1
, "QDragLeaveEvent*");
1005 if (lua_isfunction(L
, -1-2)) {
1006 lua_pcall(L
, 1+1, 2, 0);
1007 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1011 lua_settop(L
, oldtop
);
1012 this->QLineEdit::dragLeaveEvent(arg1
);
1014 lua_settop(L
, oldtop
);
1016 void LuaBinder
< QLineEdit
>::mousePressEvent (QMouseEvent
* arg1
) {
1017 bool absorbed
= false;
1018 int oldtop
= lua_gettop(L
);
1019 lqtL_pushudata(L
, this, "QLineEdit*");
1020 if (lua_getmetatable(L
, -1)) {
1021 lua_getfield(L
, -1, "mousePressEvent");
1027 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1028 if (lua_isfunction(L
, -1-2)) {
1029 lua_pcall(L
, 1+1, 2, 0);
1030 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1034 lua_settop(L
, oldtop
);
1035 this->QLineEdit::mousePressEvent(arg1
);
1037 lua_settop(L
, oldtop
);
1039 QSize LuaBinder
< QLineEdit
>::sizeHint () const {
1040 bool absorbed
= false;
1041 int oldtop
= lua_gettop(L
);
1042 lqtL_pushudata(L
, this, "QLineEdit*");
1043 if (lua_getmetatable(L
, -1)) {
1044 lua_getfield(L
, -1, "sizeHint");
1050 if (lua_isfunction(L
, -0-2)) {
1051 lua_pcall(L
, 0+1, 2, 0);
1052 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1056 lua_settop(L
, oldtop
);
1057 return this->QLineEdit::sizeHint();
1059 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1060 lua_settop(L
, oldtop
);
1063 void LuaBinder
< QLineEdit
>::changeEvent (QEvent
* arg1
) {
1064 bool absorbed
= false;
1065 int oldtop
= lua_gettop(L
);
1066 lqtL_pushudata(L
, this, "QLineEdit*");
1067 if (lua_getmetatable(L
, -1)) {
1068 lua_getfield(L
, -1, "changeEvent");
1074 lqtL_pushudata(L
, arg1
, "QEvent*");
1075 if (lua_isfunction(L
, -1-2)) {
1076 lua_pcall(L
, 1+1, 2, 0);
1077 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1081 lua_settop(L
, oldtop
);
1082 this->QLineEdit::changeEvent(arg1
);
1084 lua_settop(L
, oldtop
);
1086 void LuaBinder
< QLineEdit
>::tabletEvent (QTabletEvent
* arg1
) {
1087 bool absorbed
= false;
1088 int oldtop
= lua_gettop(L
);
1089 lqtL_pushudata(L
, this, "QLineEdit*");
1090 if (lua_getmetatable(L
, -1)) {
1091 lua_getfield(L
, -1, "tabletEvent");
1097 lqtL_pushudata(L
, arg1
, "QTabletEvent*");
1098 if (lua_isfunction(L
, -1-2)) {
1099 lua_pcall(L
, 1+1, 2, 0);
1100 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1104 lua_settop(L
, oldtop
);
1105 this->QWidget::tabletEvent(arg1
);
1107 lua_settop(L
, oldtop
);
1109 void LuaBinder
< QLineEdit
>::enterEvent (QEvent
* arg1
) {
1110 bool absorbed
= false;
1111 int oldtop
= lua_gettop(L
);
1112 lqtL_pushudata(L
, this, "QLineEdit*");
1113 if (lua_getmetatable(L
, -1)) {
1114 lua_getfield(L
, -1, "enterEvent");
1120 lqtL_pushudata(L
, arg1
, "QEvent*");
1121 if (lua_isfunction(L
, -1-2)) {
1122 lua_pcall(L
, 1+1, 2, 0);
1123 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1127 lua_settop(L
, oldtop
);
1128 this->QWidget::enterEvent(arg1
);
1130 lua_settop(L
, oldtop
);
1132 void LuaBinder
< QLineEdit
>::closeEvent (QCloseEvent
* arg1
) {
1133 bool absorbed
= false;
1134 int oldtop
= lua_gettop(L
);
1135 lqtL_pushudata(L
, this, "QLineEdit*");
1136 if (lua_getmetatable(L
, -1)) {
1137 lua_getfield(L
, -1, "closeEvent");
1143 lqtL_pushudata(L
, arg1
, "QCloseEvent*");
1144 if (lua_isfunction(L
, -1-2)) {
1145 lua_pcall(L
, 1+1, 2, 0);
1146 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1150 lua_settop(L
, oldtop
);
1151 this->QWidget::closeEvent(arg1
);
1153 lua_settop(L
, oldtop
);
1155 QSize LuaBinder
< QLineEdit
>::minimumSizeHint () const {
1156 bool absorbed
= false;
1157 int oldtop
= lua_gettop(L
);
1158 lqtL_pushudata(L
, this, "QLineEdit*");
1159 if (lua_getmetatable(L
, -1)) {
1160 lua_getfield(L
, -1, "minimumSizeHint");
1166 if (lua_isfunction(L
, -0-2)) {
1167 lua_pcall(L
, 0+1, 2, 0);
1168 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1172 lua_settop(L
, oldtop
);
1173 return this->QLineEdit::minimumSizeHint();
1175 QSize ret
= **static_cast<QSize
**>(lqtL_checkudata(L
, -1, "QSize*"));
1176 lua_settop(L
, oldtop
);
1179 void LuaBinder
< QLineEdit
>::dragEnterEvent (QDragEnterEvent
* arg1
) {
1180 bool absorbed
= false;
1181 int oldtop
= lua_gettop(L
);
1182 lqtL_pushudata(L
, this, "QLineEdit*");
1183 if (lua_getmetatable(L
, -1)) {
1184 lua_getfield(L
, -1, "dragEnterEvent");
1190 lqtL_pushudata(L
, arg1
, "QDragEnterEvent*");
1191 if (lua_isfunction(L
, -1-2)) {
1192 lua_pcall(L
, 1+1, 2, 0);
1193 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1197 lua_settop(L
, oldtop
);
1198 this->QLineEdit::dragEnterEvent(arg1
);
1200 lua_settop(L
, oldtop
);
1202 void LuaBinder
< QLineEdit
>::actionEvent (QActionEvent
* arg1
) {
1203 bool absorbed
= false;
1204 int oldtop
= lua_gettop(L
);
1205 lqtL_pushudata(L
, this, "QLineEdit*");
1206 if (lua_getmetatable(L
, -1)) {
1207 lua_getfield(L
, -1, "actionEvent");
1213 lqtL_pushudata(L
, arg1
, "QActionEvent*");
1214 if (lua_isfunction(L
, -1-2)) {
1215 lua_pcall(L
, 1+1, 2, 0);
1216 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1220 lua_settop(L
, oldtop
);
1221 this->QWidget::actionEvent(arg1
);
1223 lua_settop(L
, oldtop
);
1225 void LuaBinder
< QLineEdit
>::showEvent (QShowEvent
* arg1
) {
1226 bool absorbed
= false;
1227 int oldtop
= lua_gettop(L
);
1228 lqtL_pushudata(L
, this, "QLineEdit*");
1229 if (lua_getmetatable(L
, -1)) {
1230 lua_getfield(L
, -1, "showEvent");
1236 lqtL_pushudata(L
, arg1
, "QShowEvent*");
1237 if (lua_isfunction(L
, -1-2)) {
1238 lua_pcall(L
, 1+1, 2, 0);
1239 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1243 lua_settop(L
, oldtop
);
1244 this->QWidget::showEvent(arg1
);
1246 lua_settop(L
, oldtop
);
1248 const QMetaObject
* LuaBinder
< QLineEdit
>::metaObject () const {
1249 bool absorbed
= false;
1250 int oldtop
= lua_gettop(L
);
1251 lqtL_pushudata(L
, this, "QLineEdit*");
1252 if (lua_getmetatable(L
, -1)) {
1253 lua_getfield(L
, -1, "metaObject");
1259 if (lua_isfunction(L
, -0-2)) {
1260 lua_pcall(L
, 0+1, 2, 0);
1261 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1265 lua_settop(L
, oldtop
);
1266 return this->QLineEdit::metaObject();
1268 const QMetaObject
* ret
= *static_cast<QMetaObject
**>(lqtL_checkudata(L
, -1, "QMetaObject*"));
1269 lua_settop(L
, oldtop
);
1272 void LuaBinder
< QLineEdit
>::paintEvent (QPaintEvent
* arg1
) {
1273 bool absorbed
= false;
1274 int oldtop
= lua_gettop(L
);
1275 lqtL_pushudata(L
, this, "QLineEdit*");
1276 if (lua_getmetatable(L
, -1)) {
1277 lua_getfield(L
, -1, "paintEvent");
1283 lqtL_pushudata(L
, arg1
, "QPaintEvent*");
1284 if (lua_isfunction(L
, -1-2)) {
1285 lua_pcall(L
, 1+1, 2, 0);
1286 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1290 lua_settop(L
, oldtop
);
1291 this->QLineEdit::paintEvent(arg1
);
1293 lua_settop(L
, oldtop
);
1295 void LuaBinder
< QLineEdit
>::dragMoveEvent (QDragMoveEvent
* arg1
) {
1296 bool absorbed
= false;
1297 int oldtop
= lua_gettop(L
);
1298 lqtL_pushudata(L
, this, "QLineEdit*");
1299 if (lua_getmetatable(L
, -1)) {
1300 lua_getfield(L
, -1, "dragMoveEvent");
1306 lqtL_pushudata(L
, arg1
, "QDragMoveEvent*");
1307 if (lua_isfunction(L
, -1-2)) {
1308 lua_pcall(L
, 1+1, 2, 0);
1309 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1313 lua_settop(L
, oldtop
);
1314 this->QLineEdit::dragMoveEvent(arg1
);
1316 lua_settop(L
, oldtop
);
1318 void LuaBinder
< QLineEdit
>::focusInEvent (QFocusEvent
* arg1
) {
1319 bool absorbed
= false;
1320 int oldtop
= lua_gettop(L
);
1321 lqtL_pushudata(L
, this, "QLineEdit*");
1322 if (lua_getmetatable(L
, -1)) {
1323 lua_getfield(L
, -1, "focusInEvent");
1329 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1330 if (lua_isfunction(L
, -1-2)) {
1331 lua_pcall(L
, 1+1, 2, 0);
1332 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1336 lua_settop(L
, oldtop
);
1337 this->QLineEdit::focusInEvent(arg1
);
1339 lua_settop(L
, oldtop
);
1341 void LuaBinder
< QLineEdit
>::enabledChange (bool arg1
) {
1342 bool absorbed
= false;
1343 int oldtop
= lua_gettop(L
);
1344 lqtL_pushudata(L
, this, "QLineEdit*");
1345 if (lua_getmetatable(L
, -1)) {
1346 lua_getfield(L
, -1, "enabledChange");
1352 lua_pushboolean(L
, arg1
);
1353 if (lua_isfunction(L
, -1-2)) {
1354 lua_pcall(L
, 1+1, 2, 0);
1355 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1359 lua_settop(L
, oldtop
);
1360 this->QWidget::enabledChange(arg1
);
1362 lua_settop(L
, oldtop
);
1364 void LuaBinder
< QLineEdit
>::windowActivationChange (bool arg1
) {
1365 bool absorbed
= false;
1366 int oldtop
= lua_gettop(L
);
1367 lqtL_pushudata(L
, this, "QLineEdit*");
1368 if (lua_getmetatable(L
, -1)) {
1369 lua_getfield(L
, -1, "windowActivationChange");
1375 lua_pushboolean(L
, arg1
);
1376 if (lua_isfunction(L
, -1-2)) {
1377 lua_pcall(L
, 1+1, 2, 0);
1378 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1382 lua_settop(L
, oldtop
);
1383 this->QWidget::windowActivationChange(arg1
);
1385 lua_settop(L
, oldtop
);
1387 int LuaBinder
< QLineEdit
>::heightForWidth (int arg1
) const {
1388 bool absorbed
= false;
1389 int oldtop
= lua_gettop(L
);
1390 lqtL_pushudata(L
, this, "QLineEdit*");
1391 if (lua_getmetatable(L
, -1)) {
1392 lua_getfield(L
, -1, "heightForWidth");
1398 lua_pushinteger(L
, arg1
);
1399 if (lua_isfunction(L
, -1-2)) {
1400 lua_pcall(L
, 1+1, 2, 0);
1401 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1405 lua_settop(L
, oldtop
);
1406 return this->QWidget::heightForWidth(arg1
);
1408 int ret
= lua_tointeger(L
, -1);
1409 lua_settop(L
, oldtop
);
1412 void LuaBinder
< QLineEdit
>::mouseDoubleClickEvent (QMouseEvent
* arg1
) {
1413 bool absorbed
= false;
1414 int oldtop
= lua_gettop(L
);
1415 lqtL_pushudata(L
, this, "QLineEdit*");
1416 if (lua_getmetatable(L
, -1)) {
1417 lua_getfield(L
, -1, "mouseDoubleClickEvent");
1423 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1424 if (lua_isfunction(L
, -1-2)) {
1425 lua_pcall(L
, 1+1, 2, 0);
1426 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1430 lua_settop(L
, oldtop
);
1431 this->QLineEdit::mouseDoubleClickEvent(arg1
);
1433 lua_settop(L
, oldtop
);
1435 void LuaBinder
< QLineEdit
>::fontChange (const QFont
& arg1
) {
1436 bool absorbed
= false;
1437 int oldtop
= lua_gettop(L
);
1438 lqtL_pushudata(L
, this, "QLineEdit*");
1439 if (lua_getmetatable(L
, -1)) {
1440 lua_getfield(L
, -1, "fontChange");
1446 lqtL_pushudata(L
, &(arg1
), "QFont*");
1447 if (lua_isfunction(L
, -1-2)) {
1448 lua_pcall(L
, 1+1, 2, 0);
1449 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1453 lua_settop(L
, oldtop
);
1454 this->QWidget::fontChange(arg1
);
1456 lua_settop(L
, oldtop
);
1458 void LuaBinder
< QLineEdit
>::timerEvent (QTimerEvent
* arg1
) {
1459 bool absorbed
= false;
1460 int oldtop
= lua_gettop(L
);
1461 lqtL_pushudata(L
, this, "QLineEdit*");
1462 if (lua_getmetatable(L
, -1)) {
1463 lua_getfield(L
, -1, "timerEvent");
1469 lqtL_pushudata(L
, arg1
, "QTimerEvent*");
1470 if (lua_isfunction(L
, -1-2)) {
1471 lua_pcall(L
, 1+1, 2, 0);
1472 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1476 lua_settop(L
, oldtop
);
1477 this->QObject::timerEvent(arg1
);
1479 lua_settop(L
, oldtop
);
1481 void LuaBinder
< QLineEdit
>::mouseMoveEvent (QMouseEvent
* arg1
) {
1482 bool absorbed
= false;
1483 int oldtop
= lua_gettop(L
);
1484 lqtL_pushudata(L
, this, "QLineEdit*");
1485 if (lua_getmetatable(L
, -1)) {
1486 lua_getfield(L
, -1, "mouseMoveEvent");
1492 lqtL_pushudata(L
, arg1
, "QMouseEvent*");
1493 if (lua_isfunction(L
, -1-2)) {
1494 lua_pcall(L
, 1+1, 2, 0);
1495 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1499 lua_settop(L
, oldtop
);
1500 this->QLineEdit::mouseMoveEvent(arg1
);
1502 lua_settop(L
, oldtop
);
1504 void LuaBinder
< QLineEdit
>::disconnectNotify (const char * arg1
) {
1505 bool absorbed
= false;
1506 int oldtop
= lua_gettop(L
);
1507 lqtL_pushudata(L
, this, "QLineEdit*");
1508 if (lua_getmetatable(L
, -1)) {
1509 lua_getfield(L
, -1, "disconnectNotify");
1515 lua_pushstring(L
, arg1
);
1516 if (lua_isfunction(L
, -1-2)) {
1517 lua_pcall(L
, 1+1, 2, 0);
1518 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1522 lua_settop(L
, oldtop
);
1523 this->QObject::disconnectNotify(arg1
);
1525 lua_settop(L
, oldtop
);
1527 void LuaBinder
< QLineEdit
>::childEvent (QChildEvent
* arg1
) {
1528 bool absorbed
= false;
1529 int oldtop
= lua_gettop(L
);
1530 lqtL_pushudata(L
, this, "QLineEdit*");
1531 if (lua_getmetatable(L
, -1)) {
1532 lua_getfield(L
, -1, "childEvent");
1538 lqtL_pushudata(L
, arg1
, "QChildEvent*");
1539 if (lua_isfunction(L
, -1-2)) {
1540 lua_pcall(L
, 1+1, 2, 0);
1541 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1545 lua_settop(L
, oldtop
);
1546 this->QObject::childEvent(arg1
);
1548 lua_settop(L
, oldtop
);
1550 void LuaBinder
< QLineEdit
>::focusOutEvent (QFocusEvent
* arg1
) {
1551 bool absorbed
= false;
1552 int oldtop
= lua_gettop(L
);
1553 lqtL_pushudata(L
, this, "QLineEdit*");
1554 if (lua_getmetatable(L
, -1)) {
1555 lua_getfield(L
, -1, "focusOutEvent");
1561 lqtL_pushudata(L
, arg1
, "QFocusEvent*");
1562 if (lua_isfunction(L
, -1-2)) {
1563 lua_pcall(L
, 1+1, 2, 0);
1564 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1568 lua_settop(L
, oldtop
);
1569 this->QLineEdit::focusOutEvent(arg1
);
1571 lua_settop(L
, oldtop
);
1573 int LuaBinder
< QLineEdit
>::metric (QPaintDevice::PaintDeviceMetric arg1
) const {
1574 bool absorbed
= false;
1575 int oldtop
= lua_gettop(L
);
1576 lqtL_pushudata(L
, this, "QLineEdit*");
1577 if (lua_getmetatable(L
, -1)) {
1578 lua_getfield(L
, -1, "metric");
1584 lqtL_pushenum(L
, arg1
, "QPaintDevice::PaintDeviceMetric");
1585 if (lua_isfunction(L
, -1-2)) {
1586 lua_pcall(L
, 1+1, 2, 0);
1587 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1591 lua_settop(L
, oldtop
);
1592 return this->QWidget::metric(arg1
);
1594 int ret
= lua_tointeger(L
, -1);
1595 lua_settop(L
, oldtop
);
1598 bool LuaBinder
< QLineEdit
>::focusNextPrevChild (bool arg1
) {
1599 bool absorbed
= false;
1600 int oldtop
= lua_gettop(L
);
1601 lqtL_pushudata(L
, this, "QLineEdit*");
1602 if (lua_getmetatable(L
, -1)) {
1603 lua_getfield(L
, -1, "focusNextPrevChild");
1609 lua_pushboolean(L
, arg1
);
1610 if (lua_isfunction(L
, -1-2)) {
1611 lua_pcall(L
, 1+1, 2, 0);
1612 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1616 lua_settop(L
, oldtop
);
1617 return this->QWidget::focusNextPrevChild(arg1
);
1619 bool ret
= (bool)lua_toboolean(L
, -1);
1620 lua_settop(L
, oldtop
);
1623 bool LuaBinder
< QLineEdit
>::eventFilter (QObject
* arg1
, QEvent
* arg2
) {
1624 bool absorbed
= false;
1625 int oldtop
= lua_gettop(L
);
1626 lqtL_pushudata(L
, this, "QLineEdit*");
1627 if (lua_getmetatable(L
, -1)) {
1628 lua_getfield(L
, -1, "eventFilter");
1634 lqtL_pushudata(L
, arg1
, "QObject*");
1635 lqtL_pushudata(L
, arg2
, "QEvent*");
1636 if (lua_isfunction(L
, -2-2)) {
1637 lua_pcall(L
, 2+1, 2, 0);
1638 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1642 lua_settop(L
, oldtop
);
1643 return this->QObject::eventFilter(arg1
, arg2
);
1645 bool ret
= (bool)lua_toboolean(L
, -1);
1646 lua_settop(L
, oldtop
);
1649 void LuaBinder
< QLineEdit
>::inputMethodEvent (QInputMethodEvent
* arg1
) {
1650 bool absorbed
= false;
1651 int oldtop
= lua_gettop(L
);
1652 lqtL_pushudata(L
, this, "QLineEdit*");
1653 if (lua_getmetatable(L
, -1)) {
1654 lua_getfield(L
, -1, "inputMethodEvent");
1660 lqtL_pushudata(L
, arg1
, "QInputMethodEvent*");
1661 if (lua_isfunction(L
, -1-2)) {
1662 lua_pcall(L
, 1+1, 2, 0);
1663 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1667 lua_settop(L
, oldtop
);
1668 this->QLineEdit::inputMethodEvent(arg1
);
1670 lua_settop(L
, oldtop
);
1672 void LuaBinder
< QLineEdit
>::wheelEvent (QWheelEvent
* arg1
) {
1673 bool absorbed
= false;
1674 int oldtop
= lua_gettop(L
);
1675 lqtL_pushudata(L
, this, "QLineEdit*");
1676 if (lua_getmetatable(L
, -1)) {
1677 lua_getfield(L
, -1, "wheelEvent");
1683 lqtL_pushudata(L
, arg1
, "QWheelEvent*");
1684 if (lua_isfunction(L
, -1-2)) {
1685 lua_pcall(L
, 1+1, 2, 0);
1686 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1690 lua_settop(L
, oldtop
);
1691 this->QWidget::wheelEvent(arg1
);
1693 lua_settop(L
, oldtop
);
1695 void LuaBinder
< QLineEdit
>::resizeEvent (QResizeEvent
* arg1
) {
1696 bool absorbed
= false;
1697 int oldtop
= lua_gettop(L
);
1698 lqtL_pushudata(L
, this, "QLineEdit*");
1699 if (lua_getmetatable(L
, -1)) {
1700 lua_getfield(L
, -1, "resizeEvent");
1706 lqtL_pushudata(L
, arg1
, "QResizeEvent*");
1707 if (lua_isfunction(L
, -1-2)) {
1708 lua_pcall(L
, 1+1, 2, 0);
1709 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1713 lua_settop(L
, oldtop
);
1714 this->QWidget::resizeEvent(arg1
);
1716 lua_settop(L
, oldtop
);
1718 void LuaBinder
< QLineEdit
>::paletteChange (const QPalette
& arg1
) {
1719 bool absorbed
= false;
1720 int oldtop
= lua_gettop(L
);
1721 lqtL_pushudata(L
, this, "QLineEdit*");
1722 if (lua_getmetatable(L
, -1)) {
1723 lua_getfield(L
, -1, "paletteChange");
1729 lqtL_pushudata(L
, &(arg1
), "QPalette*");
1730 if (lua_isfunction(L
, -1-2)) {
1731 lua_pcall(L
, 1+1, 2, 0);
1732 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1736 lua_settop(L
, oldtop
);
1737 this->QWidget::paletteChange(arg1
);
1739 lua_settop(L
, oldtop
);
1741 void LuaBinder
< QLineEdit
>::languageChange () {
1742 bool absorbed
= false;
1743 int oldtop
= lua_gettop(L
);
1744 lqtL_pushudata(L
, this, "QLineEdit*");
1745 if (lua_getmetatable(L
, -1)) {
1746 lua_getfield(L
, -1, "languageChange");
1752 if (lua_isfunction(L
, -0-2)) {
1753 lua_pcall(L
, 0+1, 2, 0);
1754 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1758 lua_settop(L
, oldtop
);
1759 this->QWidget::languageChange();
1761 lua_settop(L
, oldtop
);
1763 bool LuaBinder
< QLineEdit
>::event (QEvent
* arg1
) {
1764 bool absorbed
= false;
1765 int oldtop
= lua_gettop(L
);
1766 lqtL_pushudata(L
, this, "QLineEdit*");
1767 if (lua_getmetatable(L
, -1)) {
1768 lua_getfield(L
, -1, "event");
1774 lqtL_pushudata(L
, arg1
, "QEvent*");
1775 if (lua_isfunction(L
, -1-2)) {
1776 lua_pcall(L
, 1+1, 2, 0);
1777 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1781 lua_settop(L
, oldtop
);
1782 return this->QLineEdit::event(arg1
);
1784 bool ret
= (bool)lua_toboolean(L
, -1);
1785 lua_settop(L
, oldtop
);
1788 void LuaBinder
< QLineEdit
>::hideEvent (QHideEvent
* arg1
) {
1789 bool absorbed
= false;
1790 int oldtop
= lua_gettop(L
);
1791 lqtL_pushudata(L
, this, "QLineEdit*");
1792 if (lua_getmetatable(L
, -1)) {
1793 lua_getfield(L
, -1, "hideEvent");
1799 lqtL_pushudata(L
, arg1
, "QHideEvent*");
1800 if (lua_isfunction(L
, -1-2)) {
1801 lua_pcall(L
, 1+1, 2, 0);
1802 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1806 lua_settop(L
, oldtop
);
1807 this->QWidget::hideEvent(arg1
);
1809 lua_settop(L
, oldtop
);
1811 void LuaBinder
< QLineEdit
>::connectNotify (const char * arg1
) {
1812 bool absorbed
= false;
1813 int oldtop
= lua_gettop(L
);
1814 lqtL_pushudata(L
, this, "QLineEdit*");
1815 if (lua_getmetatable(L
, -1)) {
1816 lua_getfield(L
, -1, "connectNotify");
1822 lua_pushstring(L
, arg1
);
1823 if (lua_isfunction(L
, -1-2)) {
1824 lua_pcall(L
, 1+1, 2, 0);
1825 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1829 lua_settop(L
, oldtop
);
1830 this->QObject::connectNotify(arg1
);
1832 lua_settop(L
, oldtop
);
1834 void LuaBinder
< QLineEdit
>::moveEvent (QMoveEvent
* arg1
) {
1835 bool absorbed
= false;
1836 int oldtop
= lua_gettop(L
);
1837 lqtL_pushudata(L
, this, "QLineEdit*");
1838 if (lua_getmetatable(L
, -1)) {
1839 lua_getfield(L
, -1, "moveEvent");
1845 lqtL_pushudata(L
, arg1
, "QMoveEvent*");
1846 if (lua_isfunction(L
, -1-2)) {
1847 lua_pcall(L
, 1+1, 2, 0);
1848 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1852 lua_settop(L
, oldtop
);
1853 this->QWidget::moveEvent(arg1
);
1855 lua_settop(L
, oldtop
);
1857 void LuaBinder
< QLineEdit
>::keyReleaseEvent (QKeyEvent
* arg1
) {
1858 bool absorbed
= false;
1859 int oldtop
= lua_gettop(L
);
1860 lqtL_pushudata(L
, this, "QLineEdit*");
1861 if (lua_getmetatable(L
, -1)) {
1862 lua_getfield(L
, -1, "keyReleaseEvent");
1868 lqtL_pushudata(L
, arg1
, "QKeyEvent*");
1869 if (lua_isfunction(L
, -1-2)) {
1870 lua_pcall(L
, 1+1, 2, 0);
1871 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1875 lua_settop(L
, oldtop
);
1876 this->QWidget::keyReleaseEvent(arg1
);
1878 lua_settop(L
, oldtop
);
1880 void LuaBinder
< QLineEdit
>::leaveEvent (QEvent
* arg1
) {
1881 bool absorbed
= false;
1882 int oldtop
= lua_gettop(L
);
1883 lqtL_pushudata(L
, this, "QLineEdit*");
1884 if (lua_getmetatable(L
, -1)) {
1885 lua_getfield(L
, -1, "leaveEvent");
1891 lqtL_pushudata(L
, arg1
, "QEvent*");
1892 if (lua_isfunction(L
, -1-2)) {
1893 lua_pcall(L
, 1+1, 2, 0);
1894 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1898 lua_settop(L
, oldtop
);
1899 this->QWidget::leaveEvent(arg1
);
1901 lua_settop(L
, oldtop
);
1903 void LuaBinder
< QLineEdit
>::dropEvent (QDropEvent
* arg1
) {
1904 bool absorbed
= false;
1905 int oldtop
= lua_gettop(L
);
1906 lqtL_pushudata(L
, this, "QLineEdit*");
1907 if (lua_getmetatable(L
, -1)) {
1908 lua_getfield(L
, -1, "dropEvent");
1914 lqtL_pushudata(L
, arg1
, "QDropEvent*");
1915 if (lua_isfunction(L
, -1-2)) {
1916 lua_pcall(L
, 1+1, 2, 0);
1917 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1921 lua_settop(L
, oldtop
);
1922 this->QLineEdit::dropEvent(arg1
);
1924 lua_settop(L
, oldtop
);
1926 void LuaBinder
< QLineEdit
>::customEvent (QEvent
* arg1
) {
1927 bool absorbed
= false;
1928 int oldtop
= lua_gettop(L
);
1929 lqtL_pushudata(L
, this, "QLineEdit*");
1930 if (lua_getmetatable(L
, -1)) {
1931 lua_getfield(L
, -1, "customEvent");
1937 lqtL_pushudata(L
, arg1
, "QEvent*");
1938 if (lua_isfunction(L
, -1-2)) {
1939 lua_pcall(L
, 1+1, 2, 0);
1940 absorbed
= (bool)lua_toboolean(L
, -1) || (bool)lua_toboolean(L
, -2);
1944 lua_settop(L
, oldtop
);
1945 this->QObject::customEvent(arg1
);
1947 lua_settop(L
, oldtop
);
1949 LuaBinder
< QLineEdit
>:: ~LuaBinder
< QLineEdit
> () {
1950 int oldtop
= lua_gettop(L
);
1951 lqtL_pushudata(L
, this, "QLineEdit*");
1952 lua_getfield(L
, -1, "~QLineEdit");
1954 if (lua_isfunction(L
, -1)) {
1956 lua_pcall(L
, 1, 1, 0);
1959 lua_settop(L
, oldtop
);
1961 int LuaBinder
< QLineEdit
>::lqt_pushenum_EchoMode (lua_State
*L
) {
1963 lua_getfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1964 if (!lua_istable(L
, -1)) {
1967 lua_pushvalue(L
, -1);
1968 lua_setfield(L
, LUA_REGISTRYINDEX
, LQT_ENUMS
);
1971 enum_table
= lua_gettop(L
);
1972 lua_pushstring(L
, "Normal");
1973 lua_rawseti(L
, enum_table
, 0);
1974 lua_pushinteger(L
, 0);
1975 lua_setfield(L
, enum_table
, "Normal");
1976 lua_pushstring(L
, "NoEcho");
1977 lua_rawseti(L
, enum_table
, 1);
1978 lua_pushinteger(L
, 1);
1979 lua_setfield(L
, enum_table
, "NoEcho");
1980 lua_pushstring(L
, "Password");
1981 lua_rawseti(L
, enum_table
, 2);
1982 lua_pushinteger(L
, 2);
1983 lua_setfield(L
, enum_table
, "Password");
1984 lua_pushstring(L
, "PasswordEchoOnEdit");
1985 lua_rawseti(L
, enum_table
, 3);
1986 lua_pushinteger(L
, 3);
1987 lua_setfield(L
, enum_table
, "PasswordEchoOnEdit");
1988 lua_pushvalue(L
, -1);
1989 lua_setfield(L
, -3, "QLineEdit::EchoMode");
1993 int luaopen_QLineEdit (lua_State
*L
) {
1994 if (luaL_newmetatable(L
, "QLineEdit*")) {
1995 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setValidator
);
1996 lua_setfield(L
, -2, "setValidator");
1997 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__inputMask
);
1998 lua_setfield(L
, -2, "inputMask");
1999 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__createStandardContextMenu
);
2000 lua_setfield(L
, -2, "createStandardContextMenu");
2001 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__sizeHint
);
2002 lua_setfield(L
, -2, "sizeHint");
2003 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__validator
);
2004 lua_setfield(L
, -2, "validator");
2005 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorWordBackward
);
2006 lua_setfield(L
, -2, "cursorWordBackward");
2007 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cut
);
2008 lua_setfield(L
, -2, "cut");
2009 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__hasSelectedText
);
2010 lua_setfield(L
, -2, "hasSelectedText");
2011 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__copy
);
2012 lua_setfield(L
, -2, "copy");
2013 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__home
);
2014 lua_setfield(L
, -2, "home");
2015 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__trUtf8
);
2016 lua_setfield(L
, -2, "trUtf8");
2017 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorWordForward
);
2018 lua_setfield(L
, -2, "cursorWordForward");
2019 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__tr
);
2020 lua_setfield(L
, -2, "tr");
2021 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorPositionAt
);
2022 lua_setfield(L
, -2, "cursorPositionAt");
2023 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__isReadOnly
);
2024 lua_setfield(L
, -2, "isReadOnly");
2025 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__insert
);
2026 lua_setfield(L
, -2, "insert");
2027 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setMaxLength
);
2028 lua_setfield(L
, -2, "setMaxLength");
2029 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__text
);
2030 lua_setfield(L
, -2, "text");
2031 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__event
);
2032 lua_setfield(L
, -2, "event");
2033 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__isModified
);
2034 lua_setfield(L
, -2, "isModified");
2035 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__hasFrame
);
2036 lua_setfield(L
, -2, "hasFrame");
2037 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setCursorPosition
);
2038 lua_setfield(L
, -2, "setCursorPosition");
2039 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__echoMode
);
2040 lua_setfield(L
, -2, "echoMode");
2041 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__isUndoAvailable
);
2042 lua_setfield(L
, -2, "isUndoAvailable");
2043 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorBackward
);
2044 lua_setfield(L
, -2, "cursorBackward");
2045 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setSelection
);
2046 lua_setfield(L
, -2, "setSelection");
2047 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setReadOnly
);
2048 lua_setfield(L
, -2, "setReadOnly");
2049 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setModified
);
2050 lua_setfield(L
, -2, "setModified");
2051 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setDragEnabled
);
2052 lua_setfield(L
, -2, "setDragEnabled");
2053 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorPosition
);
2054 lua_setfield(L
, -2, "cursorPosition");
2055 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__isRedoAvailable
);
2056 lua_setfield(L
, -2, "isRedoAvailable");
2057 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__del
);
2058 lua_setfield(L
, -2, "del");
2059 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__displayText
);
2060 lua_setfield(L
, -2, "displayText");
2061 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setText
);
2062 lua_setfield(L
, -2, "setText");
2063 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__minimumSizeHint
);
2064 lua_setfield(L
, -2, "minimumSizeHint");
2065 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__hasAcceptableInput
);
2066 lua_setfield(L
, -2, "hasAcceptableInput");
2067 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__selectionStart
);
2068 lua_setfield(L
, -2, "selectionStart");
2069 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__backspace
);
2070 lua_setfield(L
, -2, "backspace");
2071 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setEchoMode
);
2072 lua_setfield(L
, -2, "setEchoMode");
2073 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__end
);
2074 lua_setfield(L
, -2, "end");
2075 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__selectedText
);
2076 lua_setfield(L
, -2, "selectedText");
2077 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setCompleter
);
2078 lua_setfield(L
, -2, "setCompleter");
2079 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__metaObject
);
2080 lua_setfield(L
, -2, "metaObject");
2081 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__new
);
2082 lua_setfield(L
, -2, "new");
2083 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__inputMethodQuery
);
2084 lua_setfield(L
, -2, "inputMethodQuery");
2085 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__delete
);
2086 lua_setfield(L
, -2, "delete");
2087 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__redo
);
2088 lua_setfield(L
, -2, "redo");
2089 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__deselect
);
2090 lua_setfield(L
, -2, "deselect");
2091 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__completer
);
2092 lua_setfield(L
, -2, "completer");
2093 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setInputMask
);
2094 lua_setfield(L
, -2, "setInputMask");
2095 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__clear
);
2096 lua_setfield(L
, -2, "clear");
2097 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__maxLength
);
2098 lua_setfield(L
, -2, "maxLength");
2099 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setFrame
);
2100 lua_setfield(L
, -2, "setFrame");
2101 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__selectAll
);
2102 lua_setfield(L
, -2, "selectAll");
2103 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__alignment
);
2104 lua_setfield(L
, -2, "alignment");
2105 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__cursorForward
);
2106 lua_setfield(L
, -2, "cursorForward");
2107 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__undo
);
2108 lua_setfield(L
, -2, "undo");
2109 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__paste
);
2110 lua_setfield(L
, -2, "paste");
2111 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__dragEnabled
);
2112 lua_setfield(L
, -2, "dragEnabled");
2113 lua_pushcfunction(L
, LuaBinder
< QLineEdit
>::__LuaWrapCall__setAlignment
);
2114 lua_setfield(L
, -2, "setAlignment");
2115 LuaBinder
< QLineEdit
>::lqt_pushenum_EchoMode(L
);
2118 lua_pushboolean(L
, 1);
2119 lua_setfield(L
, -2, "QWidget*");
2120 lua_pushboolean(L
, 0);
2121 lua_setfield(L
, -2, "QObject*");
2122 lua_pushboolean(L
, 0);
2123 lua_setfield(L
, -2, "QPaintDevice*");
2124 lua_setfield(L
, -2, "__base");
2125 lua_pushcfunction(L
, lqtL_newindex
);
2126 lua_setfield(L
, -2, "__newindex");
2127 lua_pushcfunction(L
, lqtL_index
);
2128 lua_setfield(L
, -2, "__index");
2129 lua_pushcfunction(L
, lqtL_gc
);
2130 lua_setfield(L
, -2, "__gc");
2131 lua_pushstring(L
, "QLineEdit");
2132 lua_setfield(L
, -2, "__qtype");