mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Screen grabber: Hide the flyout when the chat form is hidden.
This commit is contained in:
parent
ffa1628f38
commit
f982938919
|
@ -985,10 +985,12 @@ void ChatForm::show(Ui::MainWindow &ui)
|
|||
callConfirm->show();
|
||||
}
|
||||
|
||||
void ChatForm::hideEvent(QHideEvent*)
|
||||
void ChatForm::hideEvent(QHideEvent* event)
|
||||
{
|
||||
if (callConfirm)
|
||||
callConfirm->hide();
|
||||
|
||||
GenericChatForm::hideEvent(event);
|
||||
}
|
||||
|
||||
OfflineMsgEngine *ChatForm::getOfflineMsgEngine()
|
||||
|
|
|
@ -410,6 +410,12 @@ void GenericChatForm::insertChatMessage(ChatMessage::Ptr msg)
|
|||
chatWidget->insertChatlineAtBottom(std::dynamic_pointer_cast<ChatLine>(msg));
|
||||
}
|
||||
|
||||
void GenericChatForm::hideEvent(QHideEvent* event)
|
||||
{
|
||||
hideFileMenu();
|
||||
QWidget::hideEvent(event);
|
||||
}
|
||||
|
||||
bool GenericChatForm::eventFilter(QObject* object, QEvent* event)
|
||||
{
|
||||
if (object != this->fileButton && object != this->fileFlyout)
|
||||
|
|
|
@ -84,6 +84,7 @@ protected slots:
|
|||
protected:
|
||||
QString resolveToxID(const ToxID &id);
|
||||
void insertChatMessage(ChatMessage::Ptr msg);
|
||||
void hideEvent(QHideEvent* event);
|
||||
|
||||
ToxID previousId;
|
||||
QDateTime prevMsgDateTime;
|
||||
|
|
Loading…
Reference in New Issue
Block a user