+void ChatMonitorView::mouseDoubleClickEvent(QMouseEvent *event)
+{
+ if (scene()->columnByScenePos(event->pos()) != ChatLineModel::SenderColumn) {
+ ChatView::mouseDoubleClickEvent(event);
+ return;
+ }
+
+ ChatItem *chatItem = scene()->chatItemAt(mapToScene(event->pos()));
+ if (!chatItem) {
+ event->ignore();
+ return;
+ }
+
+ event->accept();
+ BufferId bufferId = chatItem->data(MessageModel::BufferIdRole).value<BufferId>();
+ if (!bufferId.isValid())
+ return;
+
+ Client::bufferModel()->switchToBuffer(bufferId);
+}