Advanced search - finishing, fixing bugs

This commit is contained in:
Jakub Melka
2020-01-11 16:14:38 +01:00
parent d3c0e418e7
commit 1ecc5f2441
7 changed files with 172 additions and 30 deletions

View File

@ -208,7 +208,7 @@ using PDFTextSelectionColoredItems = std::vector<PDFTextSelectionColoredItem>;
/// Text selection, can be used across multiple pages. Also defines color
/// for each text selection.
class PDFTextSelection
class PDFFORQTLIBSHARED_EXPORT PDFTextSelection
{
public:
explicit PDFTextSelection() = default;
@ -376,7 +376,7 @@ private:
};
/// Paints text selection on various pages using page to device point matrix
class PDFTextSelectionPainter
class PDFFORQTLIBSHARED_EXPORT PDFTextSelectionPainter
{
public:
explicit inline PDFTextSelectionPainter(const PDFTextSelection* selection) :
@ -394,7 +394,7 @@ public:
void draw(QPainter* painter, PDFInteger pageIndex, PDFTextLayoutGetter& textLayoutGetter, const QMatrix& matrix);
private:
static constexpr const PDFReal HEIGHT_INCREASE_FACTOR = 0.25;
static constexpr const PDFReal HEIGHT_INCREASE_FACTOR = 0.40;
static constexpr const PDFReal SELECTION_ALPHA = 0.25;
const PDFTextSelection* m_selection;