[Kde-bindings] [Bug 232645] findMethod() does not work for methods in QGlobalSpace

Arno Rehn kde at arnorehn.de
Tue Mar 30 12:31:02 UTC 2010


https://bugs.kde.org/show_bug.cgi?id=232645


Arno Rehn <kde at arnorehn.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kde at arnorehn.de




--- Comment #1 from Arno Rehn <kde arnorehn de>  2010-03-30 14:30:59 ---
The problem is that QGlobalSpace is defined in multiple smoke modules, and
findMethod() will first look for the classId of 'QGlobalSpace'. It then finds
the last one registered and looks the method up in that.

We circumvent the problem in QtRuby and Qyoto by searching every module
explicitly for QGlobalSpace methods. There's no other way around that
currently.

Any fix within smoke itself would get pretty ugly I think (using std::multmaps
or another list of loaded smoke modules, which doesn't really belong to smoke
itself) and would be BIC anyway. I'm not quite sure what to do, but letting the
bindings figure out the correct QGlobalSpace as it is now seems best to me,
currently.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kde-bindings mailing list