Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
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
Administrator
linphone-desktop
Commits
fc9fcc19
Commit
fc9fcc19
authored
Apr 14, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Calls/IncallFullscreenWindow): preview supports zoom
parent
bf731086
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
IncallFullscreenWindow.qml
...one-desktop/ui/views/App/Calls/IncallFullscreenWindow.qml
+19
-4
No files found.
linphone-desktop/ui/views/App/Calls/IncallFullscreenWindow.qml
View file @
fc9fcc19
...
...
@@ -329,6 +329,8 @@ Window {
id
:
cameraPreview
Camera
{
property
bool
scale
:
false
Drag.active
:
cameraDrag
.
held
Drag.source
:
cameraDrag
Drag.hotSpot.x
:
width
/
2
...
...
@@ -337,11 +339,22 @@ Window {
call
:
incall
.
call
isPreview
:
true
height
:
CallStyle
.
actionArea
.
userVideo
.
height
width
:
CallStyle
.
actionArea
.
userVideo
.
width
height
:
CallStyle
.
actionArea
.
userVideo
.
height
*
(
scale
?
2
:
1
)
width
:
CallStyle
.
actionArea
.
userVideo
.
width
*
(
scale
?
2
:
1
)
x
:
incall
.
width
/
2
-
width
/
2
y
:
incall
.
height
-
height
Component.onCompleted
:
{
x
=
incall
.
width
/
2
-
width
/
2
y
=
incall
.
height
-
height
}
// Workaround.
// x and y are not binded to functions because if the scale is updated,
// the position of the preview is reset.
Connections
{
target
:
incall
onHeightChanged
:
y
=
incall
.
height
-
parent
.
height
onWidthChanged
:
x
=
incall
.
width
/
2
-
parent
.
width
/
2
}
MouseArea
{
id
:
cameraDrag
...
...
@@ -371,6 +384,8 @@ Window {
parent
.
y
=
incall
.
height
-
parent
.
height
}
}
onWheel
:
parent
.
scale
=
wheel
.
angleDelta
.
y
>
0
}
}
}
...
...
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