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

Rewrite cclientdlg closeEvent, onAboutToQuit, ... #3402

Open
ann0see opened this issue Oct 8, 2024 · 0 comments
Open

Rewrite cclientdlg closeEvent, onAboutToQuit, ... #3402

ann0see opened this issue Oct 8, 2024 · 0 comments
Labels
refactoring Non-behavioural changes, Code cleanup

Comments

@ann0see
Copy link
Member

ann0see commented Oct 8, 2024

There was a lot of discussion on closing methods in cclientdlg in #3372 This should probably be refactored.

Maybe closeEvent should just call QCoreApplication::instance()->exit(); and then do the work in OnAboutToQuit handlers? That should stop needing to call XYZ.Stop().

Of course, if that's what the "default implementation of this event handler routine" does, it would move all the code here into ClientDlg.OnAboutToQuit (plus handlers in each called class).

Originally posted by @pljones in #3372 (comment), #3372 (comment), #3372 (comment)

@ann0see ann0see changed the title Rewrite cclientdlg closeEvent Rewrite cclientdlg closeEvent, onAboutToQuit, ... Oct 8, 2024
@ann0see ann0see added the refactoring Non-behavioural changes, Code cleanup label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Non-behavioural changes, Code cleanup
Projects
None yet
Development

No branches or pull requests

1 participant