|
|
|
@ -291,39 +291,39 @@ void ChatLog::mouseMoveEvent(QMouseEvent* ev)
@@ -291,39 +291,39 @@ void ChatLog::mouseMoveEvent(QMouseEvent* ev)
|
|
|
|
|
scene->mouseGrabberItem()->ungrabMouse(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(selectionMode != None && ev->pos() != lastPos) |
|
|
|
|
{ |
|
|
|
|
lastPos = ev->pos(); |
|
|
|
|
if(selectionMode != None && ev->pos() != lastPos) |
|
|
|
|
{ |
|
|
|
|
lastPos = ev->pos(); |
|
|
|
|
|
|
|
|
|
ChatLineContent* content = getContentFromPos(scenePos); |
|
|
|
|
ChatLineContent* content = getContentFromPos(scenePos); |
|
|
|
|
|
|
|
|
|
if(content) |
|
|
|
|
{ |
|
|
|
|
int row = content->getRow(); |
|
|
|
|
int col = content->getColumn(); |
|
|
|
|
if(content) |
|
|
|
|
{ |
|
|
|
|
int row = content->getRow(); |
|
|
|
|
int col = content->getColumn(); |
|
|
|
|
|
|
|
|
|
if(row >= selClickedRow) |
|
|
|
|
selLastRow = row; |
|
|
|
|
if(row >= selClickedRow) |
|
|
|
|
selLastRow = row; |
|
|
|
|
|
|
|
|
|
if(row <= selClickedRow) |
|
|
|
|
selFirstRow = row; |
|
|
|
|
if(row <= selClickedRow) |
|
|
|
|
selFirstRow = row; |
|
|
|
|
|
|
|
|
|
if(row == selClickedRow && col == selClickedCol) |
|
|
|
|
{ |
|
|
|
|
selectionMode = Precise; |
|
|
|
|
if(row == selClickedRow && col == selClickedCol) |
|
|
|
|
{ |
|
|
|
|
selectionMode = Precise; |
|
|
|
|
|
|
|
|
|
content->selectionMouseMove(scenePos); |
|
|
|
|
selGraphItem->hide(); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
selectionMode = Multi; |
|
|
|
|
content->selectionMouseMove(scenePos); |
|
|
|
|
selGraphItem->hide(); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
selectionMode = Multi; |
|
|
|
|
|
|
|
|
|
lines[selClickedRow]->selectionCleared(); |
|
|
|
|
lines[selClickedRow]->selectionCleared(); |
|
|
|
|
|
|
|
|
|
updateMultiSelectionRect(); |
|
|
|
|
updateMultiSelectionRect(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|