Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-windows
Commits
435cdfc4
Commit
435cdfc4
authored
Jun 01, 2015
by
Edric Milaret
Browse files
video: add fullscreen feature
Refs #74532 Change-Id: I9b436fb9d91ebb9690dd6798a0dad3b43bb1a53e
parent
1b197eb0
Changes
3
Hide whitespace changes
Inline
Side-by-side
callwidget.cpp
View file @
435cdfc4
...
...
@@ -158,8 +158,10 @@ CallWidget::findRingAccount()
void
CallWidget
::
callIncoming
(
Call
*
call
)
{
if
(
!
call
->
account
()
->
isAutoAnswer
())
if
(
!
call
->
account
()
->
isAutoAnswer
())
{
ui
->
callInvite
->
setVisible
(
true
);
ui
->
callInvite
->
raise
();
}
setActualCall
(
call
);
}
...
...
videowidget.cpp
View file @
435cdfc4
...
...
@@ -127,3 +127,19 @@ VideoWidget::renderingStopped() {
disconnect
(
renderer_
,
SIGNAL
(
stopped
()),
this
,
SLOT
(
renderingStopped
()));
renderer_
=
nullptr
;
}
void
VideoWidget
::
mouseDoubleClickEvent
(
QMouseEvent
*
e
)
{
QWidget
::
mouseDoubleClickEvent
(
e
);
if
(
isFullScreen
())
{
this
->
setParent
(
oldParent_
);
this
->
showNormal
();
this
->
resize
(
oldSize_
.
width
(),
oldSize_
.
height
());
}
else
{
oldSize_
=
this
->
size
();
oldParent_
=
static_cast
<
QWidget
*>
(
this
->
parent
());
this
->
setParent
(
0
);
this
->
showFullScreen
();
this
->
show
();
}
}
videowidget.h
View file @
435cdfc4
...
...
@@ -44,6 +44,8 @@ public slots:
void
frameFromDistant
();
void
renderingStopped
();
protected
slots
:
void
mouseDoubleClickEvent
(
QMouseEvent
*
e
);
private:
Video
::
Renderer
*
previewRenderer_
;
Video
::
Renderer
*
renderer_
;
...
...
@@ -51,6 +53,8 @@ private:
QImage
*
distantFrame_
;
QMutex
lock_
;
QPixmap
*
previewPix_
;
QWidget
*
oldParent_
;
QSize
oldSize_
;
};
#endif // VIDEOWIDGET_H
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