Eliminate the use of unscoped signal connections#570
Eliminate the use of unscoped signal connections#570filip-hejsek wants to merge 6 commits intoTypesettingTools:masterfrom
Conversation
|
Forgot to mention that although this is marked as a draft, I would very much appreciate a review, at least to know if I took the right approach:
|
|
Thanks a lot for working on this.
Yes, I fully agree that this is the better way to go about it. In fact, if I understand
I can't think of any reasonable scenario where an exception needs to be made here. If some connection explicitly needs to live for, say, the entire program's duration then it should be a global variable or a member of
Yeah, this looks good to me. The one worry I had was that this results in the destruction order of connections being unspecified now, but this should not actually be a problem since destroying a connection cannot call any signals. Classes that need to update their connections during their lifecycle can keep a direct
I think This would probably not actually come up in practice, but it's probably better to be correct here. A consequence would be that child classes can no longer inherit from |
About the destruction order, if I'm being pedantic, I think even the current approach with EDIT: wxWidgets' |
a0520d5 to
62ca1ee
Compare
62ca1ee to
70dc34f
Compare
|
I've removed the draft status because I think this is now in a mergeable state, but:
|
Fixes #561.
To be resolved:
ToolTipManager::BindConnectionScopehelper class the right approach?privateorprotectedinheritance? A:privateLocalScriptManagerConnectionobjectsUnscopedConnectionto allow explicitly discarding it if we want to allow exceptionsConnectionfields withBindConnection?