diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-12-19 21:45:21 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2019-05-29 13:46:44 +0200 |
commit | 8f62f07bbc59ee3d97cd3d7d54b60b47c979a3cc (patch) | |
tree | 191b8c84f38fd25bad90103716a5d6c06445ba5c /src/quick/items/qquicktextedit_p_p.h | |
parent | c8827b444c23656f67feee2e3ebd4f2868ab3db7 (diff) |
Add Markdown support to TextEdit
- textFormat can be set to MarkdownText, and markdown can be
loaded into the text property
- markdown text can be pulled out of the text property
- if there are lists with checkboxes, you can click them to
change the checkbox state
Change-Id: I450115c732d737446ae71806e4abb18e8cc639f3
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/quick/items/qquicktextedit_p_p.h')
-rw-r--r-- | src/quick/items/qquicktextedit_p_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquicktextedit_p_p.h b/src/quick/items/qquicktextedit_p_p.h index 389ce3175c..be555d44fd 100644 --- a/src/quick/items/qquicktextedit_p_p.h +++ b/src/quick/items/qquicktextedit_p_p.h @@ -127,7 +127,7 @@ public: , focusOnPress(true), persistentSelection(false), requireImplicitWidth(false) , selectByMouse(false), canPaste(false), canPasteValid(false), hAlignImplicit(true) , textCached(true), inLayout(false), selectByKeyboard(false), selectByKeyboardSet(false) - , hadSelection(false) + , hadSelection(false), markdownText(false) { } @@ -225,6 +225,7 @@ public: bool selectByKeyboard:1; bool selectByKeyboardSet:1; bool hadSelection : 1; + bool markdownText : 1; }; QT_END_NAMESPACE |