mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #236: Highligting - Allow color selection and intensity [Enhancement]
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user