Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing qtmoc not handling pointer to object in QT signal properly #1147

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

StarAurryon
Copy link

The callback is returning the value of the pointer instead of the pointer.

In the change function definition if the value is an Object, we are transmitting the address of the object and if it is a pointer, we are transmitting directly the pointer.

However in the callback function, we do not make such distinction resulting in casting the value of the initial pointer to a pointer and using it for the function call instead of the initial pointer.

Happy to discuss if my code is not a good fit ^^.

Best regards,

Aurryon

…e callback is returning the value of the pointer instead of the pointer
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


StarAurryon seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@StarAurryon StarAurryon force-pushed the master branch 2 times, most recently from f061020 to e8d9849 Compare August 8, 2020 07:15
@therecipe
Copy link
Owner

Hey

Thanks for the PR :)
6b046e6 looks good, and 959859c should probably work as well, but I will need to do some testing.

Could you kindly sign the CLA?
I will try to merge the changes asap.

@StarAurryon
Copy link
Author

StarAurryon commented Aug 10, 2020

Hey,

#1147 is for me only a quick fix. I don't believe using math to generate random number is the best approach.

Regarding the CLA: this seems very weird to me to accept such thing. I am publishing my code also with LGPLv3 in my repo. I don't see why I should grant you the right to sub-licence my work outside of LGPLv3 as you wish. I truly understand that my patch are evident and there are no real copyright on this. But by principle I can't sign this.

Aurryon

@therecipe
Copy link
Owner

No problem, I respect that.
I think that it's also possible to accept smaller changes without needing a signed CLA, but I would have to look into that first.

However, I looked into this and the effect of 959859c can also be archieved by saddling the horse the other way around and simplifying some of the code.
And 6b046e6 might work (not sure if it works on the js/wasm target though), but it's not really better than just taking the unix time directly.
So I changed the code to use the unix time and hopefully also fixed the problem for the js and wasm targets with b44a787 now.

@bluszcz
Copy link

bluszcz commented Jan 23, 2023

I merged it here: https://github.com/bluszcz/cutego/tree/develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants