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

Text: selection use fuzzy hit

This commit is contained in:
krepa098 2014-12-10 19:31:27 +01:00
parent fd7fe15e31
commit 170e2e6e29

View File

@ -253,7 +253,7 @@ QSizeF Text::idealSize()
int Text::cursorFromPos(QPointF scenePos) const
{
if(doc)
return doc->documentLayout()->hitTest(mapFromScene(scenePos), Qt::ExactHit);
return doc->documentLayout()->hitTest(mapFromScene(scenePos), Qt::FuzzyHit);
return -1;
}