From b1bf1c3141863585989d5d541a73edb0265f866a Mon Sep 17 00:00:00 2001 From: cdonat2 <108551569+cdonat2@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:21:18 +0200 Subject: [PATCH] Add maximize hint for models.py (#3151) (#3328) Co-authored-by: Christian Donat --- CONTRIBUTORS | 2 +- qt/aqt/models.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 198826c44d9..2663380e3c3 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -182,7 +182,7 @@ Ian Samir Yep Manzano David Culley <6276049+davidculley@users.noreply.github.com> Rastislav Kish Expertium - +Christian Donat ******************** The text of the 3 clause BSD license follows: diff --git a/qt/aqt/models.py b/qt/aqt/models.py index 43b33dabd79..8fe055cfc78 100644 --- a/qt/aqt/models.py +++ b/qt/aqt/models.py @@ -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