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/qquicktextcontrol_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/qquicktextcontrol_p_p.h')
-rw-r--r-- | src/quick/items/qquicktextcontrol_p_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/items/qquicktextcontrol_p_p.h b/src/quick/items/qquicktextcontrol_p_p.h index 0582e6d113..5648c31e21 100644 --- a/src/quick/items/qquicktextcontrol_p_p.h +++ b/src/quick/items/qquicktextcontrol_p_p.h @@ -54,6 +54,7 @@ #include "QtGui/qtextdocumentfragment.h" #include "QtGui/qtextcursor.h" #include "QtGui/qtextformat.h" +#include "QtGui/qtextobject.h" #include "QtGui/qabstracttextdocumentlayout.h" #include "QtCore/qbasictimer.h" #include "QtCore/qpointer.h" @@ -139,6 +140,7 @@ public: QString anchorOnMousePress; QString linkToCopy; QString hoveredLink; + QTextBlock blockWithMarkerUnderMousePress; QBasicTimer cursorBlinkTimer; QBasicTimer tripleClickTimer; @@ -163,6 +165,7 @@ public: bool wordSelectionEnabled : 1; bool hasImState : 1; bool cursorRectangleChanged : 1; + bool hoveredMarker: 1; int lastSelectionStart; int lastSelectionEnd; |