mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed to hide the Hangup Button by default, only when call is started show
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7547 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6f96443813
commit
2350837bc6
@ -84,6 +84,7 @@ VOIPChatWidgetHolder::VOIPChatWidgetHolder(ChatWidget *chatWidget)
|
||||
hangupButton->setAutoRaise(true) ;
|
||||
hangupButton->setText(QString()) ;
|
||||
hangupButton->setToolTip(tr("Hangup Call"));
|
||||
hangupButton->hide();
|
||||
|
||||
connect(videoCaptureToggleButton, SIGNAL(clicked()), this , SLOT(toggleVideoCapture()));
|
||||
connect(audioListenToggleButton, SIGNAL(clicked()), this , SLOT(toggleAudioListen()));
|
||||
@ -157,6 +158,7 @@ void VOIPChatWidgetHolder::hangupCall()
|
||||
}
|
||||
audioListenToggleButton->setChecked(false);
|
||||
audioCaptureToggleButton->setChecked(false);
|
||||
hangupButton->hide();
|
||||
}
|
||||
|
||||
void VOIPChatWidgetHolder::toggleAudioCapture()
|
||||
@ -165,6 +167,7 @@ void VOIPChatWidgetHolder::toggleAudioCapture()
|
||||
//activate audio output
|
||||
audioListenToggleButton->setChecked(true);
|
||||
audioCaptureToggleButton->setToolTip(tr("Hold Call"));
|
||||
hangupButton->show();
|
||||
|
||||
//activate audio input
|
||||
if (!inputAudioProcessor) {
|
||||
@ -190,6 +193,7 @@ void VOIPChatWidgetHolder::toggleAudioCapture()
|
||||
inputAudioDevice->stop();
|
||||
}
|
||||
audioCaptureToggleButton->setToolTip(tr("Resume Call"));
|
||||
hangupButton->hide();
|
||||
}
|
||||
}
|
||||
void VOIPChatWidgetHolder::toggleVideoCapture()
|
||||
|
Loading…
Reference in New Issue
Block a user