mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Show call confirm under video if appropriate
This commit is contained in:
parent
b13c27202a
commit
40478d6bac
|
@ -265,17 +265,17 @@ void ChatForm::onAvInvite(int FriendId, int CallId, bool video)
|
||||||
|
|
||||||
qDebug() << "onAvInvite";
|
qDebug() << "onAvInvite";
|
||||||
|
|
||||||
callConfirm = new CallConfirmWidget(callButton);
|
|
||||||
if (isVisible())
|
|
||||||
callConfirm->show();
|
|
||||||
connect(callConfirm, SIGNAL(accepted()), this, SLOT(onAnswerCallTriggered()));
|
|
||||||
connect(callConfirm, SIGNAL(rejected()), this, SLOT(onRejectCallTriggered()));
|
|
||||||
|
|
||||||
callId = CallId;
|
callId = CallId;
|
||||||
callButton->disconnect();
|
callButton->disconnect();
|
||||||
videoButton->disconnect();
|
videoButton->disconnect();
|
||||||
if (video)
|
if (video)
|
||||||
{
|
{
|
||||||
|
callConfirm = new CallConfirmWidget(videoButton);
|
||||||
|
if (isVisible())
|
||||||
|
callConfirm->show();
|
||||||
|
connect(callConfirm, SIGNAL(accepted()), this, SLOT(onAnswerCallTriggered()));
|
||||||
|
connect(callConfirm, SIGNAL(rejected()), this, SLOT(onRejectCallTriggered()));
|
||||||
|
|
||||||
callButton->setObjectName("grey");
|
callButton->setObjectName("grey");
|
||||||
callButton->style()->polish(callButton);
|
callButton->style()->polish(callButton);
|
||||||
videoButton->setObjectName("yellow");
|
videoButton->setObjectName("yellow");
|
||||||
|
@ -284,6 +284,12 @@ void ChatForm::onAvInvite(int FriendId, int CallId, bool video)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
callConfirm = new CallConfirmWidget(callButton);
|
||||||
|
if (isVisible())
|
||||||
|
callConfirm->show();
|
||||||
|
connect(callConfirm, SIGNAL(accepted()), this, SLOT(onAnswerCallTriggered()));
|
||||||
|
connect(callConfirm, SIGNAL(rejected()), this, SLOT(onRejectCallTriggered()));
|
||||||
|
|
||||||
callButton->setObjectName("yellow");
|
callButton->setObjectName("yellow");
|
||||||
callButton->style()->polish(callButton);
|
callButton->style()->polish(callButton);
|
||||||
videoButton->setObjectName("grey");
|
videoButton->setObjectName("grey");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user