diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 11:12:30 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 11:12:30 +0200 |
commit | 5e9d12d1d9793afe0099fc8b68eeae1b8bbe8098 (patch) | |
tree | f6e8e526e82885ee7d50878d9b43c6907e73baa8 /framework/src/domain/documenthandler.h | |
parent | 8edb362d96ed740cf5f387649d760c17c7c17d31 (diff) | |
download | kube-5e9d12d1d9793afe0099fc8b68eeae1b8bbe8098.tar.gz kube-5e9d12d1d9793afe0099fc8b68eeae1b8bbe8098.zip |
Extract html or plaintext depending on setting
Diffstat (limited to 'framework/src/domain/documenthandler.h')
-rw-r--r-- | framework/src/domain/documenthandler.h | 6 |
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 | |||
83 | public: | 86 | public: |
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 | ||