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
f0091a44
Commit
f0091a44
authored
Feb 07, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/IncallFullscreen): hide buttons after 5s
parent
50d9baf9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
10 deletions
+33
-10
IncallFullscreen.qml
linphone-desktop/ui/views/App/IncallFullscreen.qml
+33
-10
No files found.
linphone-desktop/ui/views/App/IncallFullscreen.qml
View file @
f0091a44
...
...
@@ -17,6 +17,7 @@ Window {
// ---------------------------------------------------------------------------
property
var
call
property
bool
hideButtons
:
false
// ---------------------------------------------------------------------------
...
...
@@ -54,6 +55,35 @@ Window {
call
:
incall
.
call
}
// -------------------------------------------------------------------------
// Handle mouse move / Hide buttons.
// -------------------------------------------------------------------------
MouseArea
{
Timer
{
id
:
hideButtonsTimer
interval
:
5000
running
:
true
onTriggered
:
hideButtons
=
true
}
anchors.fill
:
parent
acceptedButtons
:
Qt
.
NoButton
hoverEnabled
:
true
propagateComposedEvents
:
true
onEntered
:
hideButtonsTimer
.
start
()
onExited
:
hideButtonsTimer
.
stop
()
onPositionChanged
:
{
hideButtonsTimer
.
stop
()
hideButtons
=
false
hideButtonsTimer
.
start
()
}
}
ColumnLayout
{
anchors
{
fill
:
parent
...
...
@@ -81,6 +111,7 @@ Window {
anchors.left
:
parent
.
left
icon
:
'
call_quality_0
'
iconSize
:
CallStyle
.
header
.
iconSize
visible
:
!
hideButtons
// See: http://www.linphone.org/docs/liblinphone/group__call__misc.html#ga62c7d3d08531b0cc634b797e273a0a73
Timer
{
...
...
@@ -136,6 +167,7 @@ Window {
ActionBar
{
anchors.right
:
parent
.
right
iconSize
:
CallStyle
.
header
.
iconSize
visible
:
!
hideButtons
ActionButton
{
icon
:
'
screenshot
'
...
...
@@ -167,6 +199,7 @@ Window {
Layout.alignment
:
Qt
.
AlignBottom
Layout.fillWidth
:
true
Layout.preferredHeight
:
CallStyle
.
actionArea
.
height
visible
:
!
hideButtons
GridLayout
{
anchors
{
...
...
@@ -202,16 +235,6 @@ Window {
}
}
Camera
{
anchors.centerIn
:
parent
height
:
CallStyle
.
actionArea
.
userVideo
.
height
width
:
CallStyle
.
actionArea
.
userVideo
.
width
isPreview
:
true
call
:
incall
.
call
}
ActionBar
{
anchors
{
right
:
parent
.
right
...
...
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