Skip to content

Commit b1bf1c3

Browse files
cdonat2Christian Donat
and
Christian Donat
authored
Add maximize hint for models.py (#3151) (#3328)
Co-authored-by: Christian Donat <[email protected]>
1 parent bab83ff commit b1bf1c3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CONTRIBUTORS

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Ian Samir Yep Manzano <https://github.com/isym444>
182182
David Culley <[email protected]>
183183
Rastislav Kish <[email protected]>
184184
Expertium <https://github.com/Expertium>
185-
185+
Christian Donat <https://github.com/cdonat2>
186186
********************
187187

188188
The text of the 3 clause BSD license follows:

qt/aqt/models.py

+7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ def __init__(
6262
self.models: Sequence[NotetypeNameIdUseCount] = []
6363
self.setupModels()
6464
restoreGeom(self, "models")
65+
66+
self.setWindowFlags(
67+
self.windowFlags()
68+
| Qt.WindowType.WindowMaximizeButtonHint
69+
| Qt.WindowType.WindowMinimizeButtonHint
70+
)
71+
6572
self.show()
6673

6774
# Models

0 commit comments

Comments
 (0)