From 5e9d12d1d9793afe0099fc8b68eeae1b8bbe8098 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 13 Sep 2017 11:12:30 +0200 Subject: Extract html or plaintext depending on setting --- framework/src/domain/documenthandler.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'framework/src/domain/documenthandler.h') 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 Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged) + Q_PROPERTY(QString plainText READ plainText NOTIFY textChanged) + Q_PROPERTY(QString htmlText READ htmlText NOTIFY textChanged) + public: explicit DocumentHandler(QObject *parent = nullptr); QQuickTextDocument *document() const; void setDocument(QQuickTextDocument *document); + QString plainText() const; + QString htmlText() const; + int cursorPosition() const; void setCursorPosition(int position); -- cgit v1.2.3