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
4176323a
Commit
4176323a
authored
Oct 20, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed python3.10 compatibility issue
parent
3443e268
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
chatwindow.py
blink/chatwindow.py
+2
-2
No files found.
blink/chatwindow.py
View file @
4176323a
...
@@ -1230,10 +1230,10 @@ class VideoWidget(VideoSurface, ui_class):
...
@@ -1230,10 +1230,10 @@ class VideoWidget(VideoSurface, ui_class):
if
ideal_geometry
.
bottom
()
>
self
.
rect
()
.
bottom
():
if
ideal_geometry
.
bottom
()
>
self
.
rect
()
.
bottom
():
ideal_geometry
.
moveBottom
(
self
.
rect
()
.
bottom
())
ideal_geometry
.
moveBottom
(
self
.
rect
()
.
bottom
())
new_height
=
limit
((
new_size
.
height
()
+
117
)
/
6
*
self
.
camera_preview
.
scale_factor
,
min
=
self
.
camera_preview
.
minimumHeight
(),
max
=
self
.
camera_preview
.
maximumHeight
(
))
new_height
=
int
(
limit
((
new_size
.
height
()
+
117
)
/
6
*
self
.
camera_preview
.
scale_factor
,
min
=
self
.
camera_preview
.
minimumHeight
(),
max
=
self
.
camera_preview
.
maximumHeight
()
))
preview_geometry
=
QRect
(
0
,
0
,
self
.
width_for_height
(
new_height
),
new_height
)
preview_geometry
=
QRect
(
0
,
0
,
self
.
width_for_height
(
new_height
),
new_height
)
quadrant
=
QRectF
(
QPointF
(
0
,
0
),
new_size
/
3
)
quadrant
=
QRectF
(
QPointF
(
0
,
0
),
int
(
new_size
/
3
)
)
if
quadrant
.
translated
(
0
,
0
)
.
contains
(
preview_center
):
# top left gravity
if
quadrant
.
translated
(
0
,
0
)
.
contains
(
preview_center
):
# top left gravity
preview_geometry
.
moveTopLeft
(
ideal_geometry
.
topLeft
())
preview_geometry
.
moveTopLeft
(
ideal_geometry
.
topLeft
())
...
...
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