updated binding sources to the last version
[Leditor.git] / src / lqt_bind_QLineEdit.cpp
blob8de954e785d46ef32944f81b0dedd0e23e4570d8
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*"));
5 if (__lua__obj==0) {
6 lua_pushstring(L, "trying to reference deleted pointer");
7 lua_error(L);
8 return 0;
10 const QValidator * arg1 = *static_cast<QValidator**>(lqtL_checkudata(L, 2, "QValidator*"));
11 __lua__obj->QLineEdit::setValidator(arg1);
12 return 0;
14 int LuaBinder< QLineEdit >::__LuaWrapCall__inputMask (lua_State *L) {
15 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
16 if (__lua__obj==0) {
17 lua_pushstring(L, "trying to reference deleted pointer");
18 lua_error(L);
19 return 0;
21 QString ret = __lua__obj->QLineEdit::inputMask();
22 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
23 return 1;
25 int LuaBinder< QLineEdit >::__LuaWrapCall__createStandardContextMenu (lua_State *L) {
26 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
27 if (__lua__obj==0) {
28 lua_pushstring(L, "trying to reference deleted pointer");
29 lua_error(L);
30 return 0;
32 QMenu * ret = __lua__obj->QLineEdit::createStandardContextMenu();
33 lqtL_pushudata(L, ret, "QMenu*");
34 return 1;
36 int LuaBinder< QLineEdit >::__LuaWrapCall__sizeHint (lua_State *L) {
37 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
38 if (__lua__obj==0) {
39 lua_pushstring(L, "trying to reference deleted pointer");
40 lua_error(L);
41 return 0;
43 QSize ret = __lua__obj->QLineEdit::sizeHint();
44 lqtL_passudata(L, new QSize(ret), "QSize*");
45 return 1;
47 int LuaBinder< QLineEdit >::__LuaWrapCall__validator (lua_State *L) {
48 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
49 if (__lua__obj==0) {
50 lua_pushstring(L, "trying to reference deleted pointer");
51 lua_error(L);
52 return 0;
54 const QValidator * ret = __lua__obj->QLineEdit::validator();
55 lqtL_pushudata(L, ret, "QValidator*");
56 return 1;
58 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorWordBackward (lua_State *L) {
59 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
60 if (__lua__obj==0) {
61 lua_pushstring(L, "trying to reference deleted pointer");
62 lua_error(L);
63 return 0;
65 bool arg1 = (bool)lua_toboolean(L, 2);
66 __lua__obj->QLineEdit::cursorWordBackward(arg1);
67 return 0;
69 int LuaBinder< QLineEdit >::__LuaWrapCall__cut (lua_State *L) {
70 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
71 if (__lua__obj==0) {
72 lua_pushstring(L, "trying to reference deleted pointer");
73 lua_error(L);
74 return 0;
76 __lua__obj->QLineEdit::cut();
77 return 0;
79 int LuaBinder< QLineEdit >::__LuaWrapCall__hasSelectedText (lua_State *L) {
80 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
81 if (__lua__obj==0) {
82 lua_pushstring(L, "trying to reference deleted pointer");
83 lua_error(L);
84 return 0;
86 bool ret = __lua__obj->QLineEdit::hasSelectedText();
87 lua_pushboolean(L, ret);
88 return 1;
90 int LuaBinder< QLineEdit >::__LuaWrapCall__copy (lua_State *L) {
91 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
92 if (__lua__obj==0) {
93 lua_pushstring(L, "trying to reference deleted pointer");
94 lua_error(L);
95 return 0;
97 __lua__obj->QLineEdit::copy();
98 return 0;
100 int LuaBinder< QLineEdit >::__LuaWrapCall__home (lua_State *L) {
101 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
102 if (__lua__obj==0) {
103 lua_pushstring(L, "trying to reference deleted pointer");
104 lua_error(L);
105 return 0;
107 bool arg1 = (bool)lua_toboolean(L, 2);
108 __lua__obj->QLineEdit::home(arg1);
109 return 0;
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());
116 return 1;
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());
124 return 1;
126 int LuaBinder< QLineEdit >::__LuaWrapCall__trUtf8 (lua_State *L) {
127 int score[3];
128 const int premium = 11+lua_gettop(L);
129 score[1] = 0;
130 if ((lua_type(L, 1)==LUA_TSTRING)) {
131 score[1] += premium;
132 } else if (false) {
133 score[1] += premium-1; // table: 0xcbcfe0;
134 } else {
135 score[1] -= premium*premium;
137 if ((lua_type(L, 2)==LUA_TSTRING)) {
138 score[1] += premium;
139 } else if (true) {
140 score[1] += premium-1; // table: 0xcc96b0;
141 } else {
142 score[1] -= premium*premium;
144 score[2] = 0;
145 if ((lua_type(L, 1)==LUA_TSTRING)) {
146 score[2] += premium;
147 } else if (false) {
148 score[2] += premium-1; // table: 0xb3cdd0;
149 } else {
150 score[2] -= premium*premium;
152 if ((lua_type(L, 2)==LUA_TSTRING)) {
153 score[2] += premium;
154 } else if (false) {
155 score[2] += premium-1; // table: 0xb907f0;
156 } else {
157 score[2] -= premium*premium;
159 if (lua_isnumber(L, 3)) {
160 score[2] += premium;
161 } else if (false) {
162 score[2] += premium-1; // table: 0xb26f00;
163 } else {
164 score[2] -= premium*premium;
166 int best = 1;
167 for (int i=1;i<=2;i++) {
168 if (score[best] < score[i]) { best = i; }
170 switch (best) {
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");
175 lua_error(L);
176 return 0;
178 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorWordForward (lua_State *L) {
179 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
180 if (__lua__obj==0) {
181 lua_pushstring(L, "trying to reference deleted pointer");
182 lua_error(L);
183 return 0;
185 bool arg1 = (bool)lua_toboolean(L, 2);
186 __lua__obj->QLineEdit::cursorWordForward(arg1);
187 return 0;
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());
194 return 1;
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());
202 return 1;
204 int LuaBinder< QLineEdit >::__LuaWrapCall__tr (lua_State *L) {
205 int score[3];
206 const int premium = 11+lua_gettop(L);
207 score[1] = 0;
208 if ((lua_type(L, 1)==LUA_TSTRING)) {
209 score[1] += premium;
210 } else if (false) {
211 score[1] += premium-1; // table: 0xd57b30;
212 } else {
213 score[1] -= premium*premium;
215 if ((lua_type(L, 2)==LUA_TSTRING)) {
216 score[1] += premium;
217 } else if (true) {
218 score[1] += premium-1; // table: 0xd5b120;
219 } else {
220 score[1] -= premium*premium;
222 score[2] = 0;
223 if ((lua_type(L, 1)==LUA_TSTRING)) {
224 score[2] += premium;
225 } else if (false) {
226 score[2] += premium-1; // table: 0xcb9fe0;
227 } else {
228 score[2] -= premium*premium;
230 if ((lua_type(L, 2)==LUA_TSTRING)) {
231 score[2] += premium;
232 } else if (false) {
233 score[2] += premium-1; // table: 0xc5ca50;
234 } else {
235 score[2] -= premium*premium;
237 if (lua_isnumber(L, 3)) {
238 score[2] += premium;
239 } else if (false) {
240 score[2] += premium-1; // table: 0x6b0720;
241 } else {
242 score[2] -= premium*premium;
244 int best = 1;
245 for (int i=1;i<=2;i++) {
246 if (score[best] < score[i]) { best = i; }
248 switch (best) {
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");
253 lua_error(L);
254 return 0;
256 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorPositionAt (lua_State *L) {
257 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
258 if (__lua__obj==0) {
259 lua_pushstring(L, "trying to reference deleted pointer");
260 lua_error(L);
261 return 0;
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);
266 return 1;
268 int LuaBinder< QLineEdit >::__LuaWrapCall__isReadOnly (lua_State *L) {
269 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
270 if (__lua__obj==0) {
271 lua_pushstring(L, "trying to reference deleted pointer");
272 lua_error(L);
273 return 0;
275 bool ret = __lua__obj->QLineEdit::isReadOnly();
276 lua_pushboolean(L, ret);
277 return 1;
279 int LuaBinder< QLineEdit >::__LuaWrapCall__insert (lua_State *L) {
280 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
281 if (__lua__obj==0) {
282 lua_pushstring(L, "trying to reference deleted pointer");
283 lua_error(L);
284 return 0;
286 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
287 __lua__obj->QLineEdit::insert(arg1);
288 return 0;
290 int LuaBinder< QLineEdit >::__LuaWrapCall__setMaxLength (lua_State *L) {
291 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
292 if (__lua__obj==0) {
293 lua_pushstring(L, "trying to reference deleted pointer");
294 lua_error(L);
295 return 0;
297 int arg1 = lua_tointeger(L, 2);
298 __lua__obj->QLineEdit::setMaxLength(arg1);
299 return 0;
301 int LuaBinder< QLineEdit >::__LuaWrapCall__text (lua_State *L) {
302 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
303 if (__lua__obj==0) {
304 lua_pushstring(L, "trying to reference deleted pointer");
305 lua_error(L);
306 return 0;
308 QString ret = __lua__obj->QLineEdit::text();
309 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
310 return 1;
312 int LuaBinder< QLineEdit >::__LuaWrapCall__event (lua_State *L) {
313 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
314 if (__lua__obj==0) {
315 lua_pushstring(L, "trying to reference deleted pointer");
316 lua_error(L);
317 return 0;
319 QEvent * arg1 = *static_cast<QEvent**>(lqtL_checkudata(L, 2, "QEvent*"));
320 bool ret = __lua__obj->QLineEdit::event(arg1);
321 lua_pushboolean(L, ret);
322 return 1;
324 int LuaBinder< QLineEdit >::__LuaWrapCall__isModified (lua_State *L) {
325 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
326 if (__lua__obj==0) {
327 lua_pushstring(L, "trying to reference deleted pointer");
328 lua_error(L);
329 return 0;
331 bool ret = __lua__obj->QLineEdit::isModified();
332 lua_pushboolean(L, ret);
333 return 1;
335 int LuaBinder< QLineEdit >::__LuaWrapCall__hasFrame (lua_State *L) {
336 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
337 if (__lua__obj==0) {
338 lua_pushstring(L, "trying to reference deleted pointer");
339 lua_error(L);
340 return 0;
342 bool ret = __lua__obj->QLineEdit::hasFrame();
343 lua_pushboolean(L, ret);
344 return 1;
346 int LuaBinder< QLineEdit >::__LuaWrapCall__setCursorPosition (lua_State *L) {
347 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
348 if (__lua__obj==0) {
349 lua_pushstring(L, "trying to reference deleted pointer");
350 lua_error(L);
351 return 0;
353 int arg1 = lua_tointeger(L, 2);
354 __lua__obj->QLineEdit::setCursorPosition(arg1);
355 return 0;
357 int LuaBinder< QLineEdit >::__LuaWrapCall__echoMode (lua_State *L) {
358 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
359 if (__lua__obj==0) {
360 lua_pushstring(L, "trying to reference deleted pointer");
361 lua_error(L);
362 return 0;
364 QLineEdit::EchoMode ret = __lua__obj->QLineEdit::echoMode();
365 lqtL_pushenum(L, ret, "QLineEdit::EchoMode");
366 return 1;
368 int LuaBinder< QLineEdit >::__LuaWrapCall__isUndoAvailable (lua_State *L) {
369 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
370 if (__lua__obj==0) {
371 lua_pushstring(L, "trying to reference deleted pointer");
372 lua_error(L);
373 return 0;
375 bool ret = __lua__obj->QLineEdit::isUndoAvailable();
376 lua_pushboolean(L, ret);
377 return 1;
379 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorBackward (lua_State *L) {
380 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
381 if (__lua__obj==0) {
382 lua_pushstring(L, "trying to reference deleted pointer");
383 lua_error(L);
384 return 0;
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);
389 return 0;
391 int LuaBinder< QLineEdit >::__LuaWrapCall__setSelection (lua_State *L) {
392 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
393 if (__lua__obj==0) {
394 lua_pushstring(L, "trying to reference deleted pointer");
395 lua_error(L);
396 return 0;
398 int arg1 = lua_tointeger(L, 2);
399 int arg2 = lua_tointeger(L, 3);
400 __lua__obj->QLineEdit::setSelection(arg1, arg2);
401 return 0;
403 int LuaBinder< QLineEdit >::__LuaWrapCall__setReadOnly (lua_State *L) {
404 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
405 if (__lua__obj==0) {
406 lua_pushstring(L, "trying to reference deleted pointer");
407 lua_error(L);
408 return 0;
410 bool arg1 = (bool)lua_toboolean(L, 2);
411 __lua__obj->QLineEdit::setReadOnly(arg1);
412 return 0;
414 int LuaBinder< QLineEdit >::__LuaWrapCall__setModified (lua_State *L) {
415 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
416 if (__lua__obj==0) {
417 lua_pushstring(L, "trying to reference deleted pointer");
418 lua_error(L);
419 return 0;
421 bool arg1 = (bool)lua_toboolean(L, 2);
422 __lua__obj->QLineEdit::setModified(arg1);
423 return 0;
425 int LuaBinder< QLineEdit >::__LuaWrapCall__setDragEnabled (lua_State *L) {
426 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
427 if (__lua__obj==0) {
428 lua_pushstring(L, "trying to reference deleted pointer");
429 lua_error(L);
430 return 0;
432 bool arg1 = (bool)lua_toboolean(L, 2);
433 __lua__obj->QLineEdit::setDragEnabled(arg1);
434 return 0;
436 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorPosition (lua_State *L) {
437 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
438 if (__lua__obj==0) {
439 lua_pushstring(L, "trying to reference deleted pointer");
440 lua_error(L);
441 return 0;
443 int ret = __lua__obj->QLineEdit::cursorPosition();
444 lua_pushinteger(L, ret);
445 return 1;
447 int LuaBinder< QLineEdit >::__LuaWrapCall__isRedoAvailable (lua_State *L) {
448 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
449 if (__lua__obj==0) {
450 lua_pushstring(L, "trying to reference deleted pointer");
451 lua_error(L);
452 return 0;
454 bool ret = __lua__obj->QLineEdit::isRedoAvailable();
455 lua_pushboolean(L, ret);
456 return 1;
458 int LuaBinder< QLineEdit >::__LuaWrapCall__del (lua_State *L) {
459 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
460 if (__lua__obj==0) {
461 lua_pushstring(L, "trying to reference deleted pointer");
462 lua_error(L);
463 return 0;
465 __lua__obj->QLineEdit::del();
466 return 0;
468 int LuaBinder< QLineEdit >::__LuaWrapCall__displayText (lua_State *L) {
469 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
470 if (__lua__obj==0) {
471 lua_pushstring(L, "trying to reference deleted pointer");
472 lua_error(L);
473 return 0;
475 QString ret = __lua__obj->QLineEdit::displayText();
476 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
477 return 1;
479 int LuaBinder< QLineEdit >::__LuaWrapCall__setText (lua_State *L) {
480 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
481 if (__lua__obj==0) {
482 lua_pushstring(L, "trying to reference deleted pointer");
483 lua_error(L);
484 return 0;
486 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
487 __lua__obj->QLineEdit::setText(arg1);
488 return 0;
490 int LuaBinder< QLineEdit >::__LuaWrapCall__minimumSizeHint (lua_State *L) {
491 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
492 if (__lua__obj==0) {
493 lua_pushstring(L, "trying to reference deleted pointer");
494 lua_error(L);
495 return 0;
497 QSize ret = __lua__obj->QLineEdit::minimumSizeHint();
498 lqtL_passudata(L, new QSize(ret), "QSize*");
499 return 1;
501 int LuaBinder< QLineEdit >::__LuaWrapCall__hasAcceptableInput (lua_State *L) {
502 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
503 if (__lua__obj==0) {
504 lua_pushstring(L, "trying to reference deleted pointer");
505 lua_error(L);
506 return 0;
508 bool ret = __lua__obj->QLineEdit::hasAcceptableInput();
509 lua_pushboolean(L, ret);
510 return 1;
512 int LuaBinder< QLineEdit >::__LuaWrapCall__selectionStart (lua_State *L) {
513 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
514 if (__lua__obj==0) {
515 lua_pushstring(L, "trying to reference deleted pointer");
516 lua_error(L);
517 return 0;
519 int ret = __lua__obj->QLineEdit::selectionStart();
520 lua_pushinteger(L, ret);
521 return 1;
523 int LuaBinder< QLineEdit >::__LuaWrapCall__backspace (lua_State *L) {
524 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
525 if (__lua__obj==0) {
526 lua_pushstring(L, "trying to reference deleted pointer");
527 lua_error(L);
528 return 0;
530 __lua__obj->QLineEdit::backspace();
531 return 0;
533 int LuaBinder< QLineEdit >::__LuaWrapCall__setEchoMode (lua_State *L) {
534 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
535 if (__lua__obj==0) {
536 lua_pushstring(L, "trying to reference deleted pointer");
537 lua_error(L);
538 return 0;
540 QLineEdit::EchoMode arg1 = static_cast<QLineEdit::EchoMode>(lqtL_toenum(L, 2, "QLineEdit::EchoMode"));
541 __lua__obj->QLineEdit::setEchoMode(arg1);
542 return 0;
544 int LuaBinder< QLineEdit >::__LuaWrapCall__end (lua_State *L) {
545 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
546 if (__lua__obj==0) {
547 lua_pushstring(L, "trying to reference deleted pointer");
548 lua_error(L);
549 return 0;
551 bool arg1 = (bool)lua_toboolean(L, 2);
552 __lua__obj->QLineEdit::end(arg1);
553 return 0;
555 int LuaBinder< QLineEdit >::__LuaWrapCall__selectedText (lua_State *L) {
556 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
557 if (__lua__obj==0) {
558 lua_pushstring(L, "trying to reference deleted pointer");
559 lua_error(L);
560 return 0;
562 QString ret = __lua__obj->QLineEdit::selectedText();
563 lua_pushlstring(L, ret.toAscii().data(), ret.toAscii().size());
564 return 1;
566 int LuaBinder< QLineEdit >::__LuaWrapCall__setCompleter (lua_State *L) {
567 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
568 if (__lua__obj==0) {
569 lua_pushstring(L, "trying to reference deleted pointer");
570 lua_error(L);
571 return 0;
573 QCompleter * arg1 = *static_cast<QCompleter**>(lqtL_checkudata(L, 2, "QCompleter*"));
574 __lua__obj->QLineEdit::setCompleter(arg1);
575 return 0;
577 int LuaBinder< QLineEdit >::__LuaWrapCall__metaObject (lua_State *L) {
578 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
579 if (__lua__obj==0) {
580 lua_pushstring(L, "trying to reference deleted pointer");
581 lua_error(L);
582 return 0;
584 const QMetaObject * ret = __lua__obj->QLineEdit::metaObject();
585 lqtL_pushudata(L, ret, "QMetaObject*");
586 return 1;
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*");
592 return 1;
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*");
599 return 1;
601 int LuaBinder< QLineEdit >::__LuaWrapCall__new (lua_State *L) {
602 int score[3];
603 const int premium = 11+lua_gettop(L);
604 score[1] = 0;
605 if (lqtL_testudata(L, 1, "QWidget*")) {
606 score[1] += premium;
607 } else if (true) {
608 score[1] += premium-1; // table: 0x81b8f0;
609 } else {
610 score[1] -= premium*premium;
612 score[2] = 0;
613 if ((lua_type(L, 1)==LUA_TSTRING)) {
614 score[2] += premium;
615 } else if (false) {
616 score[2] += premium-1; // table: 0x775c60;
617 } else {
618 score[2] -= premium*premium;
620 if (lqtL_testudata(L, 2, "QWidget*")) {
621 score[2] += premium;
622 } else if (true) {
623 score[2] += premium-1; // table: 0x7e63a0;
624 } else {
625 score[2] -= premium*premium;
627 int best = 1;
628 for (int i=1;i<=2;i++) {
629 if (score[best] < score[i]) { best = i; }
631 switch (best) {
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");
636 lua_error(L);
637 return 0;
639 int LuaBinder< QLineEdit >::__LuaWrapCall__inputMethodQuery (lua_State *L) {
640 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
641 if (__lua__obj==0) {
642 lua_pushstring(L, "trying to reference deleted pointer");
643 lua_error(L);
644 return 0;
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*");
649 return 1;
651 int LuaBinder< QLineEdit >::__LuaWrapCall__delete (lua_State *L) {
652 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
653 if (__lua__obj==0) {
654 lua_pushstring(L, "trying to reference deleted pointer");
655 lua_error(L);
656 return 0;
658 delete __lua__obj;
659 __lua__obj = 0;
660 return 0;
662 int LuaBinder< QLineEdit >::__LuaWrapCall__redo (lua_State *L) {
663 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
664 if (__lua__obj==0) {
665 lua_pushstring(L, "trying to reference deleted pointer");
666 lua_error(L);
667 return 0;
669 __lua__obj->QLineEdit::redo();
670 return 0;
672 int LuaBinder< QLineEdit >::__LuaWrapCall__deselect (lua_State *L) {
673 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
674 if (__lua__obj==0) {
675 lua_pushstring(L, "trying to reference deleted pointer");
676 lua_error(L);
677 return 0;
679 __lua__obj->QLineEdit::deselect();
680 return 0;
682 int LuaBinder< QLineEdit >::__LuaWrapCall__completer (lua_State *L) {
683 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
684 if (__lua__obj==0) {
685 lua_pushstring(L, "trying to reference deleted pointer");
686 lua_error(L);
687 return 0;
689 QCompleter * ret = __lua__obj->QLineEdit::completer();
690 lqtL_pushudata(L, ret, "QCompleter*");
691 return 1;
693 int LuaBinder< QLineEdit >::__LuaWrapCall__setInputMask (lua_State *L) {
694 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
695 if (__lua__obj==0) {
696 lua_pushstring(L, "trying to reference deleted pointer");
697 lua_error(L);
698 return 0;
700 const QString& arg1 = QString::fromAscii(lua_tostring(L, 2), lua_objlen(L, 2));
701 __lua__obj->QLineEdit::setInputMask(arg1);
702 return 0;
704 int LuaBinder< QLineEdit >::__LuaWrapCall__clear (lua_State *L) {
705 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
706 if (__lua__obj==0) {
707 lua_pushstring(L, "trying to reference deleted pointer");
708 lua_error(L);
709 return 0;
711 __lua__obj->QLineEdit::clear();
712 return 0;
714 int LuaBinder< QLineEdit >::__LuaWrapCall__maxLength (lua_State *L) {
715 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
716 if (__lua__obj==0) {
717 lua_pushstring(L, "trying to reference deleted pointer");
718 lua_error(L);
719 return 0;
721 int ret = __lua__obj->QLineEdit::maxLength();
722 lua_pushinteger(L, ret);
723 return 1;
725 int LuaBinder< QLineEdit >::__LuaWrapCall__setFrame (lua_State *L) {
726 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
727 if (__lua__obj==0) {
728 lua_pushstring(L, "trying to reference deleted pointer");
729 lua_error(L);
730 return 0;
732 bool arg1 = (bool)lua_toboolean(L, 2);
733 __lua__obj->QLineEdit::setFrame(arg1);
734 return 0;
736 int LuaBinder< QLineEdit >::__LuaWrapCall__selectAll (lua_State *L) {
737 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
738 if (__lua__obj==0) {
739 lua_pushstring(L, "trying to reference deleted pointer");
740 lua_error(L);
741 return 0;
743 __lua__obj->QLineEdit::selectAll();
744 return 0;
746 int LuaBinder< QLineEdit >::__LuaWrapCall__alignment (lua_State *L) {
747 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
748 if (__lua__obj==0) {
749 lua_pushstring(L, "trying to reference deleted pointer");
750 lua_error(L);
751 return 0;
753 QFlags<Qt::AlignmentFlag> ret = __lua__obj->QLineEdit::alignment();
754 lqtL_passudata(L, new QFlags<Qt::AlignmentFlag>(ret), "QFlags<Qt::AlignmentFlag>*");
755 return 1;
757 int LuaBinder< QLineEdit >::__LuaWrapCall__cursorForward (lua_State *L) {
758 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
759 if (__lua__obj==0) {
760 lua_pushstring(L, "trying to reference deleted pointer");
761 lua_error(L);
762 return 0;
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);
767 return 0;
769 int LuaBinder< QLineEdit >::__LuaWrapCall__undo (lua_State *L) {
770 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
771 if (__lua__obj==0) {
772 lua_pushstring(L, "trying to reference deleted pointer");
773 lua_error(L);
774 return 0;
776 __lua__obj->QLineEdit::undo();
777 return 0;
779 int LuaBinder< QLineEdit >::__LuaWrapCall__paste (lua_State *L) {
780 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
781 if (__lua__obj==0) {
782 lua_pushstring(L, "trying to reference deleted pointer");
783 lua_error(L);
784 return 0;
786 __lua__obj->QLineEdit::paste();
787 return 0;
789 int LuaBinder< QLineEdit >::__LuaWrapCall__dragEnabled (lua_State *L) {
790 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
791 if (__lua__obj==0) {
792 lua_pushstring(L, "trying to reference deleted pointer");
793 lua_error(L);
794 return 0;
796 bool ret = __lua__obj->QLineEdit::dragEnabled();
797 lua_pushboolean(L, ret);
798 return 1;
800 int LuaBinder< QLineEdit >::__LuaWrapCall__setAlignment (lua_State *L) {
801 QLineEdit *& __lua__obj = *static_cast<QLineEdit**>(lqtL_checkudata(L, 1, "QLineEdit*"));
802 if (__lua__obj==0) {
803 lua_pushstring(L, "trying to reference deleted pointer");
804 lua_error(L);
805 return 0;
807 QFlags<Qt::AlignmentFlag> arg1 = **static_cast<QFlags<Qt::AlignmentFlag>**>(lqtL_checkudata(L, 2, "QFlags<Qt::AlignmentFlag>*"));
808 __lua__obj->QLineEdit::setAlignment(arg1);
809 return 0;
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");
817 lua_remove(L, -2);
818 } else {
819 lua_pushnil(L);
821 lua_insert(L, -2);
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);
826 lua_pop(L, 1);
828 if (!absorbed) {
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");
840 lua_remove(L, -2);
841 } else {
842 lua_pushnil(L);
844 lua_insert(L, -2);
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);
849 lua_pop(L, 1);
851 if (!absorbed) {
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");
863 lua_remove(L, -2);
864 } else {
865 lua_pushnil(L);
867 lua_insert(L, -2);
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);
872 lua_pop(L, 1);
874 if (!absorbed) {
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");
886 lua_remove(L, -2);
887 } else {
888 lua_pushnil(L);
890 lua_insert(L, -2);
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);
895 lua_pop(L, 1);
897 if (!absorbed) {
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");
909 lua_remove(L, -2);
910 } else {
911 lua_pushnil(L);
913 lua_insert(L, -2);
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);
917 lua_pop(L, 1);
919 if (!absorbed) {
920 lua_settop(L, oldtop);
921 return this->QWidget::devType();
923 int ret = lua_tointeger(L, -1);
924 lua_settop(L, oldtop);
925 return ret;
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");
933 lua_remove(L, -2);
934 } else {
935 lua_pushnil(L);
937 lua_insert(L, -2);
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);
942 lua_pop(L, 1);
944 if (!absorbed) {
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");
956 lua_remove(L, -2);
957 } else {
958 lua_pushnil(L);
960 lua_insert(L, -2);
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);
965 lua_pop(L, 1);
967 if (!absorbed) {
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);
973 return ret;
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");
981 lua_remove(L, -2);
982 } else {
983 lua_pushnil(L);
985 lua_insert(L, -2);
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);
989 lua_pop(L, 1);
991 if (!absorbed) {
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);
997 return ret;
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");
1005 lua_remove(L, -2);
1006 } else {
1007 lua_pushnil(L);
1009 lua_insert(L, -2);
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);
1014 lua_pop(L, 1);
1016 if (!absorbed) {
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");
1028 lua_remove(L, -2);
1029 } else {
1030 lua_pushnil(L);
1032 lua_insert(L, -2);
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);
1037 lua_pop(L, 1);
1039 if (!absorbed) {
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");
1051 lua_remove(L, -2);
1052 } else {
1053 lua_pushnil(L);
1055 lua_insert(L, -2);
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);
1059 lua_pop(L, 1);
1061 if (!absorbed) {
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);
1067 return ret;
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");
1075 lua_remove(L, -2);
1076 } else {
1077 lua_pushnil(L);
1079 lua_insert(L, -2);
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);
1084 lua_pop(L, 1);
1086 if (!absorbed) {
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");
1098 lua_remove(L, -2);
1099 } else {
1100 lua_pushnil(L);
1102 lua_insert(L, -2);
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);
1107 lua_pop(L, 1);
1109 if (!absorbed) {
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");
1121 lua_remove(L, -2);
1122 } else {
1123 lua_pushnil(L);
1125 lua_insert(L, -2);
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);
1130 lua_pop(L, 1);
1132 if (!absorbed) {
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");
1144 lua_remove(L, -2);
1145 } else {
1146 lua_pushnil(L);
1148 lua_insert(L, -2);
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);
1153 lua_pop(L, 1);
1155 if (!absorbed) {
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");
1167 lua_remove(L, -2);
1168 } else {
1169 lua_pushnil(L);
1171 lua_insert(L, -2);
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);
1175 lua_pop(L, 1);
1177 if (!absorbed) {
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);
1183 return ret;
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");
1191 lua_remove(L, -2);
1192 } else {
1193 lua_pushnil(L);
1195 lua_insert(L, -2);
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);
1200 lua_pop(L, 1);
1202 if (!absorbed) {
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");
1214 lua_remove(L, -2);
1215 } else {
1216 lua_pushnil(L);
1218 lua_insert(L, -2);
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);
1223 lua_pop(L, 1);
1225 if (!absorbed) {
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");
1237 lua_remove(L, -2);
1238 } else {
1239 lua_pushnil(L);
1241 lua_insert(L, -2);
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);
1246 lua_pop(L, 1);
1248 if (!absorbed) {
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");
1260 lua_remove(L, -2);
1261 } else {
1262 lua_pushnil(L);
1264 lua_insert(L, -2);
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);
1268 lua_pop(L, 1);
1270 if (!absorbed) {
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);
1276 return ret;
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");
1284 lua_remove(L, -2);
1285 } else {
1286 lua_pushnil(L);
1288 lua_insert(L, -2);
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);
1293 lua_pop(L, 1);
1295 if (!absorbed) {
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");
1307 lua_remove(L, -2);
1308 } else {
1309 lua_pushnil(L);
1311 lua_insert(L, -2);
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);
1316 lua_pop(L, 1);
1318 if (!absorbed) {
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");
1330 lua_remove(L, -2);
1331 } else {
1332 lua_pushnil(L);
1334 lua_insert(L, -2);
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);
1339 lua_pop(L, 1);
1341 if (!absorbed) {
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");
1353 lua_remove(L, -2);
1354 } else {
1355 lua_pushnil(L);
1357 lua_insert(L, -2);
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);
1362 lua_pop(L, 1);
1364 if (!absorbed) {
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");
1376 lua_remove(L, -2);
1377 } else {
1378 lua_pushnil(L);
1380 lua_insert(L, -2);
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);
1385 lua_pop(L, 1);
1387 if (!absorbed) {
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");
1399 lua_remove(L, -2);
1400 } else {
1401 lua_pushnil(L);
1403 lua_insert(L, -2);
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);
1408 lua_pop(L, 1);
1410 if (!absorbed) {
1411 lua_settop(L, oldtop);
1412 return this->QWidget::heightForWidth(arg1);
1414 int ret = lua_tointeger(L, -1);
1415 lua_settop(L, oldtop);
1416 return ret;
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");
1424 lua_remove(L, -2);
1425 } else {
1426 lua_pushnil(L);
1428 lua_insert(L, -2);
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);
1433 lua_pop(L, 1);
1435 if (!absorbed) {
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");
1447 lua_remove(L, -2);
1448 } else {
1449 lua_pushnil(L);
1451 lua_insert(L, -2);
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);
1456 lua_pop(L, 1);
1458 if (!absorbed) {
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");
1470 lua_remove(L, -2);
1471 } else {
1472 lua_pushnil(L);
1474 lua_insert(L, -2);
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);
1479 lua_pop(L, 1);
1481 if (!absorbed) {
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");
1493 lua_remove(L, -2);
1494 } else {
1495 lua_pushnil(L);
1497 lua_insert(L, -2);
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);
1502 lua_pop(L, 1);
1504 if (!absorbed) {
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");
1516 lua_remove(L, -2);
1517 } else {
1518 lua_pushnil(L);
1520 lua_insert(L, -2);
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);
1525 lua_pop(L, 1);
1527 if (!absorbed) {
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");
1539 lua_remove(L, -2);
1540 } else {
1541 lua_pushnil(L);
1543 lua_insert(L, -2);
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);
1548 lua_pop(L, 1);
1550 if (!absorbed) {
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");
1562 lua_remove(L, -2);
1563 } else {
1564 lua_pushnil(L);
1566 lua_insert(L, -2);
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);
1571 lua_pop(L, 1);
1573 if (!absorbed) {
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");
1585 lua_remove(L, -2);
1586 } else {
1587 lua_pushnil(L);
1589 lua_insert(L, -2);
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);
1594 lua_pop(L, 1);
1596 if (!absorbed) {
1597 lua_settop(L, oldtop);
1598 return this->QWidget::metric(arg1);
1600 int ret = lua_tointeger(L, -1);
1601 lua_settop(L, oldtop);
1602 return ret;
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");
1610 lua_remove(L, -2);
1611 } else {
1612 lua_pushnil(L);
1614 lua_insert(L, -2);
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);
1619 lua_pop(L, 1);
1621 if (!absorbed) {
1622 lua_settop(L, oldtop);
1623 return this->QWidget::focusNextPrevChild(arg1);
1625 bool ret = (bool)lua_toboolean(L, -1);
1626 lua_settop(L, oldtop);
1627 return ret;
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");
1635 lua_remove(L, -2);
1636 } else {
1637 lua_pushnil(L);
1639 lua_insert(L, -2);
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);
1645 lua_pop(L, 1);
1647 if (!absorbed) {
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);
1653 return ret;
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");
1661 lua_remove(L, -2);
1662 } else {
1663 lua_pushnil(L);
1665 lua_insert(L, -2);
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);
1670 lua_pop(L, 1);
1672 if (!absorbed) {
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");
1684 lua_remove(L, -2);
1685 } else {
1686 lua_pushnil(L);
1688 lua_insert(L, -2);
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);
1693 lua_pop(L, 1);
1695 if (!absorbed) {
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");
1707 lua_remove(L, -2);
1708 } else {
1709 lua_pushnil(L);
1711 lua_insert(L, -2);
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);
1716 lua_pop(L, 1);
1718 if (!absorbed) {
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");
1730 lua_remove(L, -2);
1731 } else {
1732 lua_pushnil(L);
1734 lua_insert(L, -2);
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);
1739 lua_pop(L, 1);
1741 if (!absorbed) {
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");
1753 lua_remove(L, -2);
1754 } else {
1755 lua_pushnil(L);
1757 lua_insert(L, -2);
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);
1761 lua_pop(L, 1);
1763 if (!absorbed) {
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");
1775 lua_remove(L, -2);
1776 } else {
1777 lua_pushnil(L);
1779 lua_insert(L, -2);
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);
1784 lua_pop(L, 1);
1786 if (!absorbed) {
1787 lua_settop(L, oldtop);
1788 return this->QLineEdit::event(arg1);
1790 bool ret = (bool)lua_toboolean(L, -1);
1791 lua_settop(L, oldtop);
1792 return ret;
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");
1800 lua_remove(L, -2);
1801 } else {
1802 lua_pushnil(L);
1804 lua_insert(L, -2);
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);
1809 lua_pop(L, 1);
1811 if (!absorbed) {
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");
1823 lua_remove(L, -2);
1824 } else {
1825 lua_pushnil(L);
1827 lua_insert(L, -2);
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);
1832 lua_pop(L, 1);
1834 if (!absorbed) {
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");
1846 lua_remove(L, -2);
1847 } else {
1848 lua_pushnil(L);
1850 lua_insert(L, -2);
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);
1855 lua_pop(L, 1);
1857 if (!absorbed) {
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");
1869 lua_remove(L, -2);
1870 } else {
1871 lua_pushnil(L);
1873 lua_insert(L, -2);
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);
1878 lua_pop(L, 1);
1880 if (!absorbed) {
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");
1892 lua_remove(L, -2);
1893 } else {
1894 lua_pushnil(L);
1896 lua_insert(L, -2);
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);
1901 lua_pop(L, 1);
1903 if (!absorbed) {
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");
1915 lua_remove(L, -2);
1916 } else {
1917 lua_pushnil(L);
1919 lua_insert(L, -2);
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);
1924 lua_pop(L, 1);
1926 if (!absorbed) {
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");
1938 lua_remove(L, -2);
1939 } else {
1940 lua_pushnil(L);
1942 lua_insert(L, -2);
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);
1947 lua_pop(L, 1);
1949 if (!absorbed) {
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)) {
1961 lua_insert(L, -2);
1962 lua_pcall(L, 1, 1, 0);
1963 } else {
1965 lua_settop(L, oldtop);
1967 int LuaBinder< QLineEdit >::lqt_pushenum_EchoMode (lua_State *L) {
1968 int enum_table = 0;
1969 lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1970 if (!lua_istable(L, -1)) {
1971 lua_pop(L, 1);
1972 lua_newtable(L);
1973 lua_pushvalue(L, -1);
1974 lua_setfield(L, LUA_REGISTRYINDEX, LQT_ENUMS);
1976 lua_newtable(L);
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");
1998 lua_remove(L, -2);
1999 return 1;
2001 int LuaBinder< QLineEdit >::lqt_pushenum_EchoMode_QFLAGS_CREATOR (lua_State *L) {
2002 int argn = lua_gettop(L);
2003 int i = 0;
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]) );
2006 *(void**)p = fl;
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);
2015 return 1;
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");
2141 lua_newtable(L);
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");
2158 } else {
2159 lua_pop(L, 1);
2161 return 0;