Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
a6339c83
Commit
a6339c83
authored
Aug 09, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 3.10 fix
parent
fadf8b36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
aboutpanel.py
blink/aboutpanel.py
+2
-2
No files found.
blink/aboutpanel.py
View file @
a6339c83
...
...
@@ -50,9 +50,9 @@ class AboutPanel(base_class, ui_class, metaclass=QSingleton):
def
_credits_size_changed
(
self
,
size
):
self
.
credits_text
.
document
()
.
documentLayout
()
.
documentSizeChanged
.
disconnect
(
self
.
_credits_size_changed
)
self
.
setFixedSize
(
self
.
minimumSize
()
.
width
(),
self
.
minimumSize
()
.
width
()
*
1.40
)
# set a fixed aspect ratio
self
.
setFixedSize
(
self
.
minimumSize
()
.
width
(),
int
(
self
.
minimumSize
()
.
width
()
*
1.40
)
)
# set a fixed aspect ratio
row_height
=
self
.
credits_text
.
fontMetrics
()
.
height
()
+
2
# +2 for cellspacing
max_credits_height
=
8
*
row_height
+
2
+
14
# allow for maximum 8 rows; +2 for cellspacing and +14 for top/bottom margins
max_credits_height
=
8
*
row_height
+
2
+
14
# allow for maximum 8 rows; +2 for cellspacing and +14 for top/bottom margins
if
self
.
credits_text
.
height
()
>
max_credits_height
:
self
.
setFixedHeight
(
self
.
height
()
-
(
self
.
credits_text
.
height
()
-
max_credits_height
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment