mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
65fc1dc266
commit
228c431c89
|
@ -1911,7 +1911,15 @@ Group* Widget::createGroup(int groupId)
|
|||
|
||||
connect(widget, &GroupWidget::chatroomWidgetClicked, this, &Widget::onChatroomWidgetClicked);
|
||||
connect(widget, &GroupWidget::newWindowOpened, this, &Widget::openNewDialog);
|
||||
connect(widget, SIGNAL(removeGroup(int)), this, SLOT(removeGroup(int)));
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0))
|
||||
auto widgetRemoveGroup = QOverload<int>::of(&Widget::removeGroup);
|
||||
#else
|
||||
auto widgetRemoveGroup = static_cast<void (Widget::*)(int)>(&Widget::removeGroup);
|
||||
#endif
|
||||
connect(widget, &GroupWidget::removeGroup, this, widgetRemoveGroup);
|
||||
connect(widget, &GroupWidget::middleMouseClicked, this, [=]() {
|
||||
removeGroup(groupId);
|
||||
});
|
||||
connect(widget, &GroupWidget::chatroomWidgetClicked, form, &ChatForm::focusInput);
|
||||
connect(form, &GroupChatForm::sendMessage, core, &Core::sendGroupMessage);
|
||||
connect(form, &GroupChatForm::sendAction, core, &Core::sendGroupAction);
|
||||
|
|
Loading…
Reference in New Issue
Block a user