mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
* Moved to Display the Video Widget on the right side
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7727 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
40bfa50b29
commit
1648842dd6
4 changed files with 83 additions and 80 deletions
|
@ -107,15 +107,18 @@ VOIPChatWidgetHolder::VOIPChatWidgetHolder(ChatWidget *chatWidget)
|
|||
|
||||
// Make a widget with two video devices, one for echo, and one for the talking peer.
|
||||
videoWidget = new QWidget(mChatWidget) ;
|
||||
videoWidget->setLayout(new QHBoxLayout()) ;
|
||||
videoWidget->setLayout(new QVBoxLayout()) ;
|
||||
videoWidget->layout()->addWidget(echoVideoDevice = new QVideoOutputDevice(videoWidget)) ;
|
||||
videoWidget->layout()->addWidget(outputVideoDevice = new QVideoOutputDevice(videoWidget)) ;
|
||||
videoWidget->hide();
|
||||
|
||||
connect(inputVideoDevice, SIGNAL(networkPacketReady()), this, SLOT(sendVideoData()));
|
||||
|
||||
echoVideoDevice->setMinimumSize(128,95) ;
|
||||
outputVideoDevice->setMinimumSize(128,95) ;
|
||||
echoVideoDevice->setMinimumSize(320,256) ;
|
||||
outputVideoDevice->setMinimumSize(320,256) ;
|
||||
|
||||
echoVideoDevice->setStyleSheet("border: 1px solid #CCCCCC;");
|
||||
outputVideoDevice->setStyleSheet("border: 1px solid #CCCCCC;");
|
||||
|
||||
mChatWidget->addChatHorizontalWidget(videoWidget) ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue