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:
parent
fd7fe15e31
commit
170e2e6e29
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user