mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Tool for text selection (first part)
This commit is contained in:
@ -349,6 +349,19 @@ qint64 PDFTextLayout::getMemoryConsumptionEstimate() const
|
||||
return estimate;
|
||||
}
|
||||
|
||||
bool PDFTextLayout::isHoveringOverTextBlock(const QPointF& point) const
|
||||
{
|
||||
for (const PDFTextBlock& block : m_blocks)
|
||||
{
|
||||
if (block.getBoundingBox().contains(point))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
QDataStream& operator>>(QDataStream& stream, PDFTextLayout& layout)
|
||||
{
|
||||
stream >> layout.m_characters;
|
||||
|
Reference in New Issue
Block a user