Advanced tools - create sticky note (beginning)

This commit is contained in:
Jakub Melka
2020-12-03 19:58:50 +01:00
parent 0c92648e2a
commit 4d0c1e0ab1
8 changed files with 319 additions and 30 deletions

View File

@@ -742,7 +742,7 @@ enum class TextAnnotationIcon
/// as if flag NoZoom and NoRotate were set). When this annotation is opened,
/// it displays popup window containing the text of the note, font and size
/// is implementation dependent by viewer application.
class PDFTextAnnotation : public PDFMarkupAnnotation
class PDFFORQTLIBSHARED_EXPORT PDFTextAnnotation : public PDFMarkupAnnotation
{
public:
inline explicit PDFTextAnnotation() = default;
@@ -757,9 +757,13 @@ public:
const QString& getState() const { return m_state; }
const QString& getStateModel() const { return m_stateModel; }
static QIcon createIcon(QString key, QSize size);
private:
friend static PDFAnnotationPtr PDFAnnotation::parse(const PDFObjectStorage* storage, PDFObjectReference reference);
static QString getTextForIcon(const QString& key);
bool m_open = false;
QByteArray m_iconName;
QString m_state;