summaryrefslogtreecommitdiffstats
path: root/framework/src/domain/documenthandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/domain/documenthandler.h')
-rw-r--r--framework/src/domain/documenthandler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/src/domain/documenthandler.h b/framework/src/domain/documenthandler.h
index 24b3b35f..0c1bf971 100644
--- a/framework/src/domain/documenthandler.h
+++ b/framework/src/domain/documenthandler.h
@@ -80,12 +80,18 @@ class DocumentHandler : public QObject
80 80
81 Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged) 81 Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged)
82 82
83 Q_PROPERTY(QString plainText READ plainText NOTIFY textChanged)
84 Q_PROPERTY(QString htmlText READ htmlText NOTIFY textChanged)
85
83public: 86public:
84 explicit DocumentHandler(QObject *parent = nullptr); 87 explicit DocumentHandler(QObject *parent = nullptr);
85 88
86 QQuickTextDocument *document() const; 89 QQuickTextDocument *document() const;
87 void setDocument(QQuickTextDocument *document); 90 void setDocument(QQuickTextDocument *document);
88 91
92 QString plainText() const;
93 QString htmlText() const;
94
89 int cursorPosition() const; 95 int cursorPosition() const;
90 void setCursorPosition(int position); 96 void setCursorPosition(int position);
91 97