mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Hide Video Chat widget by default, only show when Video Chat is started.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7546 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b04c6af675
commit
6f96443813
@ -109,6 +109,7 @@ VOIPChatWidgetHolder::VOIPChatWidgetHolder(ChatWidget *chatWidget)
|
||||
videoWidget->setLayout(new QHBoxLayout()) ;
|
||||
videoWidget->layout()->addWidget(echoVideoDevice = new QVideoOutputDevice(videoWidget)) ;
|
||||
videoWidget->layout()->addWidget(outputVideoDevice = new QVideoOutputDevice(videoWidget)) ;
|
||||
videoWidget->hide();
|
||||
|
||||
connect(inputVideoDevice, SIGNAL(networkPacketReady()), this, SLOT(sendVideoData()));
|
||||
|
||||
@ -197,6 +198,7 @@ void VOIPChatWidgetHolder::toggleVideoCapture()
|
||||
{
|
||||
//activate video input
|
||||
//
|
||||
videoWidget->show();
|
||||
inputVideoDevice->start() ;
|
||||
|
||||
videoCaptureToggleButton->setToolTip(tr("Shut camera off"));
|
||||
@ -209,6 +211,7 @@ void VOIPChatWidgetHolder::toggleVideoCapture()
|
||||
inputVideoDevice->stop() ;
|
||||
videoCaptureToggleButton->setToolTip(tr("Activate camera"));
|
||||
outputVideoDevice->showFrameOff();
|
||||
videoWidget->hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user