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:
defnax 2014-09-20 16:28:26 +00:00
parent b04c6af675
commit 6f96443813

View File

@ -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();
}
}