if(_selectionMode == NoSelection) {
chatScene()->setSelectingItem(this); // removes earlier selection if exists
_selectionStart = _selectionEnd = posToCursor(event->pos());
if(_selectionMode == NoSelection) {
chatScene()->setSelectingItem(this); // removes earlier selection if exists
_selectionStart = _selectionEnd = posToCursor(event->pos());
_selectionEnd = posToCursor(event->pos());
QString selection
= data(MessageModel::DisplayRole).toString().mid(qMin(_selectionStart, _selectionEnd), qAbs(_selectionStart - _selectionEnd));
_selectionEnd = posToCursor(event->pos());
QString selection
= data(MessageModel::DisplayRole).toString().mid(qMin(_selectionStart, _selectionEnd), qAbs(_selectionStart - _selectionEnd));