|
|
|
@ -51,6 +51,7 @@ ChatForm::ChatForm(Friend* chatFriend)
@@ -51,6 +51,7 @@ ChatForm::ChatForm(Friend* chatFriend)
|
|
|
|
|
connect(msgEdit, &ChatTextEdit::enterPressed, this, &ChatForm::onSendTriggered); |
|
|
|
|
connect(micButton, SIGNAL(clicked()), this, SLOT(onMicMuteToggle())); |
|
|
|
|
connect(chatWidget, &ChatAreaWidget::onFileTranfertInterract, this, &ChatForm::onFileTansBtnClicked); |
|
|
|
|
connect(Core::getInstance(), &Core::fileSendFailed, this, &ChatForm::onFileSendFailed); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ChatForm::~ChatForm() |
|
|
|
@ -455,3 +456,11 @@ void ChatForm::onFileTansBtnClicked(QString widgetName, QString buttonName)
@@ -455,3 +456,11 @@ void ChatForm::onFileTansBtnClicked(QString widgetName, QString buttonName)
|
|
|
|
|
else |
|
|
|
|
qDebug() << "no filetransferwidget: " << id; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ChatForm::onFileSendFailed(int FriendId, const QString &fname) |
|
|
|
|
{ |
|
|
|
|
if (FriendId != f->friendId) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
addSystemInfoMessage("File: \"" + fname + "\" failed to send.", "red"); |
|
|
|
|
} |
|
|
|
|