1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

revised issue #6

This commit is contained in:
krepa098 2015-02-10 14:36:53 +01:00
parent 69fde0d8b0
commit 697460ca36

View File

@ -182,16 +182,6 @@ void ChatLog::mousePressEvent(QMouseEvent* ev)
if(!isOverSelection(scenePos))
clearSelection();
}
#ifdef Q_OS_LINUX
if(ev->button() == Qt::MiddleButton)
{
copySelectedText(true);
if(!isOverSelection(scenePos))
clearSelection();
}
#endif
}
void ChatLog::mouseReleaseEvent(QMouseEvent* ev)
@ -312,6 +302,10 @@ void ChatLog::mouseMoveEvent(QMouseEvent* ev)
updateMultiSelectionRect();
}
}
#ifdef Q_OS_LINUX
copySelectedText(true);
#endif
}
//Much faster than QGraphicsScene::itemAt()!