Skip to content

Commit

Permalink
Add maximize hint for models.py (#3151) (#3328)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Donat <cdonat@tu-berlin.de>
  • Loading branch information
cdonat2 and Christian Donat authored Aug 5, 2024
1 parent bab83ff commit b1bf1c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Ian Samir Yep Manzano <https://github.com/isym444>
David Culley <6276049+davidculley@users.noreply.github.com>
Rastislav Kish <rastislav.kish@protonmail.com>
Expertium <https://github.com/Expertium>

Christian Donat <https://github.com/cdonat2>
********************

The text of the 3 clause BSD license follows:
Expand Down
7 changes: 7 additions & 0 deletions qt/aqt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ def __init__(
self.models: Sequence[NotetypeNameIdUseCount] = []
self.setupModels()
restoreGeom(self, "models")

self.setWindowFlags(
self.windowFlags()
| Qt.WindowType.WindowMaximizeButtonHint
| Qt.WindowType.WindowMinimizeButtonHint
)

self.show()

# Models
Expand Down

0 comments on commit b1bf1c3

Please sign in to comment.