Summary: | findMethod() does not work for methods in QGlobalSpace | ||
---|---|---|---|
Product: | [Unmaintained] bindings | Reporter: | Chris Burel <chrisburel> |
Component: | general | Assignee: | bindings-bugs-null |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | arno |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Chris Burel
2010-03-30 03:55:04 UTC
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. Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone! Arno's comment implies that this is a design decision and won't change. |