print the method name on argument mismatch
[lqt.git] / generator / qt_internal.lua
blobafafe8db15862a2163504643c4871f13a566455d
2 local classes, enums = ...
3 local ret1, ret2 = {}, {}
5 -- don't bind this Qt internals/unsupported classes
6 -- if there are linker errors, or errors when laoding the .so
7 -- add the class here
9 for c in pairs(classes) do
10 local n = c.xarg.name
11 if n~=string.lower(n) and not (string.match(n, '_')
13 -- internals, no binding needed
14 or c.xarg.fullname=='QDebug::Stream'
15 or c.xarg.fullname=='QByteArray::Data'
16 or c.xarg.fullname=='QVariant::Private::Data'
17 or c.xarg.fullname=='QRegion::QRegionData'
18 or c.xarg.fullname=='QString::Data'
19 or c.xarg.fullname=='QObjectData'
20 or c.xarg.fullname=='QThreadStorageData'
21 or c.xarg.fullname=='QXmlAttributes::Attribute'
22 or c.xarg.fullname=='QGLColormap::QGLColormapData'
23 or c.xarg.fullname=='QtConcurrent::internal::ExceptionStore'
24 or c.xarg.fullname=='QtConcurrent::internal::ExceptionHolder'
25 or c.xarg.fullname=='QtConcurrent::ResultIteratorBase'
26 or c.xarg.fullname=='QtSharedPointer'
27 or c.xarg.fullname=='QtSharedPointer::InternalRefCountData'
28 or c.xarg.fullname=='QtSharedPointer::ExternalRefCountData'
30 -- platform specific, TODO
31 or c.xarg.fullname=='QWindowsCEStyle'
32 or c.xarg.fullname=='QWindowsMobileStyle'
33 or c.xarg.fullname=='QWindowsXPStyle'
34 or c.xarg.fullname=='QWindowsVistaStyle'
35 or c.xarg.fullname=='QMacStyle'
37 -- binding bugs
38 or c.xarg.fullname=='QUpdateLaterEvent'
39 or c.xarg.fullname=='QTextStreamManipulator'
40 or c.xarg.fullname=='QForeachContainerBase'
41 or c.xarg.fullname=='QtConcurrent::ThreadEngineSemaphore'
42 or c.xarg.fullname=='QtConcurrent::Exception' -- GCC throw() in destructor base declaration
43 or c.xarg.fullname=='QtConcurrent::UnhandledException' -- GCC throw() in destructor base declaration
47 ) then
48 ret1[c] = true
49 end
50 end
52 for e in pairs(enums) do
53 local n = e.xarg.name
54 if n~=string.lower(n) and not string.match(n, '_') then
55 ret2[e] = true
56 end
57 end
59 return ret1, ret2