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

Clarify qt settings #3

Open
wants to merge 1 commit into
base: doc
Choose a base branch
from

Conversation

excalamus
Copy link

@excalamus excalamus commented Sep 23, 2022

Note WindowState as a parent of Tool.

I would also like to mention the need to attach save_state() to a closing signal (e.g. self.finished.connect(self.save_state))) and how self._restore_state() gets called by self.restore_state(). However, instead of documenting it, I wonder whether we should just add the connection and restore call to a def __init__ of WindowState. That way, save state will always be called on close and restore state always called on start. Thoughts?

Tool inherits from both `QDialog` and `WindowState` yet only `QDialog`
was given in the docs.  This is misleading because the `_save_state()`
and `_restore_state()` methods come from `WindowState`.
@excalamus excalamus changed the base branch from master to doc October 26, 2022 12:35
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.

2 participants