mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-26 01:31:30 -05: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->setLayout(new QHBoxLayout()) ;
|
||||||
videoWidget->layout()->addWidget(echoVideoDevice = new QVideoOutputDevice(videoWidget)) ;
|
videoWidget->layout()->addWidget(echoVideoDevice = new QVideoOutputDevice(videoWidget)) ;
|
||||||
videoWidget->layout()->addWidget(outputVideoDevice = new QVideoOutputDevice(videoWidget)) ;
|
videoWidget->layout()->addWidget(outputVideoDevice = new QVideoOutputDevice(videoWidget)) ;
|
||||||
|
videoWidget->hide();
|
||||||
|
|
||||||
connect(inputVideoDevice, SIGNAL(networkPacketReady()), this, SLOT(sendVideoData()));
|
connect(inputVideoDevice, SIGNAL(networkPacketReady()), this, SLOT(sendVideoData()));
|
||||||
|
|
||||||
@ -197,6 +198,7 @@ void VOIPChatWidgetHolder::toggleVideoCapture()
|
|||||||
{
|
{
|
||||||
//activate video input
|
//activate video input
|
||||||
//
|
//
|
||||||
|
videoWidget->show();
|
||||||
inputVideoDevice->start() ;
|
inputVideoDevice->start() ;
|
||||||
|
|
||||||
videoCaptureToggleButton->setToolTip(tr("Shut camera off"));
|
videoCaptureToggleButton->setToolTip(tr("Shut camera off"));
|
||||||
@ -209,6 +211,7 @@ void VOIPChatWidgetHolder::toggleVideoCapture()
|
|||||||
inputVideoDevice->stop() ;
|
inputVideoDevice->stop() ;
|
||||||
videoCaptureToggleButton->setToolTip(tr("Activate camera"));
|
videoCaptureToggleButton->setToolTip(tr("Activate camera"));
|
||||||
outputVideoDevice->showFrameOff();
|
outputVideoDevice->showFrameOff();
|
||||||
|
videoWidget->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user