|
|
@ -37,10 +37,10 @@ |
|
|
|
#include "src/model/status.h" |
|
|
|
#include "src/model/status.h" |
|
|
|
#include "src/persistence/settings.h" |
|
|
|
#include "src/persistence/settings.h" |
|
|
|
#include "src/widget/contentlayout.h" |
|
|
|
#include "src/widget/contentlayout.h" |
|
|
|
#include "src/widget/friendwidget.h" |
|
|
|
|
|
|
|
#include "src/widget/groupwidget.h" |
|
|
|
|
|
|
|
#include "src/widget/form/chatform.h" |
|
|
|
#include "src/widget/form/chatform.h" |
|
|
|
#include "src/widget/friendlistlayout.h" |
|
|
|
#include "src/widget/friendlistlayout.h" |
|
|
|
|
|
|
|
#include "src/widget/friendwidget.h" |
|
|
|
|
|
|
|
#include "src/widget/groupwidget.h" |
|
|
|
#include "src/widget/style.h" |
|
|
|
#include "src/widget/style.h" |
|
|
|
#include "src/widget/tool/adjustingscrollarea.h" |
|
|
|
#include "src/widget/tool/adjustingscrollarea.h" |
|
|
|
#include "src/widget/translator.h" |
|
|
|
#include "src/widget/translator.h" |
|
|
@ -141,7 +141,7 @@ ContentDialog::~ContentDialog() |
|
|
|
Translator::unregister(this); |
|
|
|
Translator::unregister(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void ContentDialog::closeEvent(QCloseEvent *event) |
|
|
|
void ContentDialog::closeEvent(QCloseEvent* event) |
|
|
|
{ |
|
|
|
{ |
|
|
|
emit willClose(); |
|
|
|
emit willClose(); |
|
|
|
event->accept(); |
|
|
|
event->accept(); |
|
|
@ -499,7 +499,7 @@ void ContentDialog::dropEvent(QDropEvent* event) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Widget::getInstance()->addFriendDialog(contact, this); |
|
|
|
emit addFriendDialog(contact, this); |
|
|
|
ensureSplitterVisible(); |
|
|
|
ensureSplitterVisible(); |
|
|
|
} else if (group) { |
|
|
|
} else if (group) { |
|
|
|
assert(event->mimeData()->hasFormat("groupId")); |
|
|
|
assert(event->mimeData()->hasFormat("groupId")); |
|
|
@ -509,7 +509,7 @@ void ContentDialog::dropEvent(QDropEvent* event) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Widget::getInstance()->addGroupDialog(contact, this); |
|
|
|
emit addGroupDialog(contact, this); |
|
|
|
ensureSplitterVisible(); |
|
|
|
ensureSplitterVisible(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|