Issue #236: Highligting - Allow color selection and intensity [Enhancement]

This commit is contained in:
Jakub Melka
2025-01-25 17:53:45 +01:00
parent 0df7d7f36f
commit 7445e9a53a
3 changed files with 73 additions and 9 deletions

View File

@ -23,6 +23,7 @@
#include "pdfannotation.h"
class QActionGroup;
class QColorDialog;
namespace pdf
{
@ -307,8 +308,10 @@ protected:
private:
void onActionTriggered(QAction* action);
void onColorChanged(const QColor& color);
void updateCursor();
void setSelection(pdf::PDFTextSelection&& textSelection);
void updateInitialColor();
struct SelectionInfo
{
@ -318,9 +321,11 @@ private:
PDFToolManager* m_toolManager;
QActionGroup* m_actionGroup;
QColorDialog* m_colorDialog;
AnnotationType m_type;
pdf::PDFTextSelection m_textSelection;
SelectionInfo m_selectionInfo;
QColor m_color;
bool m_isCursorOverText;
};