- if(contains(event->pos())) {
- qint16 end = posToCursor(event->pos());
- if(end != _selectionEnd) {
- _selectionEnd = end;
- update();
+ if(event->buttons() == Qt::LeftButton) {
+ if(contains(event->pos())) {
+ qint16 end = posToCursor(event->pos());
+ if(end != _selectionEnd) {
+ _selectionEnd = end;
+ if(_selectionStart != _selectionEnd) _selectionMode = PartialSelection;
+ else _selectionMode = NoSelection;
+ update();
+ }
+ } else {
+ setFullSelection();
+ chatScene()->startGlobalSelection(this, event->pos());