37 activeFocusOnTab: false
40 property bool readOnly: true
41 property bool selectByMouse: true
42 property color color: Kirigami.Theme.textColor
43 property color selectedTextColor: Kirigami.Theme.highlightedTextColor
44 property color selectionColor: Kirigami.Theme.highlightColor
47 property var cursorShape
48 property var horizontalAlignment
49 property var textFormat: TextEdit.AutoText
50 property var verticalAlignment: TextEdit.AlignTop
51 property var wrapMode: TextEdit.WordWrap
53 readonly property bool canPaste: textEdit.canPaste
54 readonly property bool canRedo: textEdit.canRedo
55 readonly property bool canUndo: textEdit.canUndo
56 readonly property bool inputMethodComposing: textEdit.inputMethodComposing
57 readonly property int length: textEdit.length
58 readonly property int lineCount: textEdit.lineCount
59 readonly property int selectionEnd: textEdit.selectionEnd
60 readonly property int selectionStart: textEdit.selectionStart
61 readonly property real contentHeight: textEdit.contentHeight
62 readonly property real contentWidth: textEdit.contentWidth
63 readonly property string hoveredLink: textEdit.hoveredLink
64 readonly property string preeditText: textEdit.preeditText
65 readonly property string selectedText: textEdit.selectedText
66 readonly property var cursorRectangle: textEdit.cursorRectangle
67 readonly property var cursorSelection: textEdit.cursorSelection
68 readonly property var effectiveHorizontalAlignment: textEdit.effectiveHorizontalAlignment
69 readonly property var textDocument: textEdit.textDocument
72 signal linkActivated(string link)
73 signal linkHovered(string link)
75 onLinkActivated: link => Qt.openUrlExternally(link)
77 property var flickable: undefined
78 property var placeholderText: undefined
79 property var placeholderTextColor: undefined
81 signal pressAndHold(MouseEvent event)
82 signal pressed(MouseEvent event)
83 signal released(MouseEvent event)
87 property var activeFocusOnPress: undefined
88 property var cursorDelegate: undefined
89 property var cursorPosition: undefined
90 property var cursorVisible: undefined
91 property var inputMethodHints: undefined
92 property var mouseSelectionMode: undefined
93 property var overwriteMode: undefined
94 property var persistentSelection: undefined
95 property var renderType: undefined
96 property var selectByKeyboard: undefined
97 property var tabStopDistance: undefined
98 property var textMargin: undefined
100 signal editingFinished()
103 contentItem: TextEdit {
114 property alias cursorShape: hoverHandler.cursorShape
116 activeFocusOnTab: root.activeFocusOnTab
117 baseUrl: root.baseUrl
119 horizontalAlignment: root.horizontalAlignment
121 readOnly: root.readOnly
122 selectByMouse: root.selectByMouse
123 selectedTextColor: root.selectedTextColor
124 selectionColor: root.selectionColor
125 textFormat: root.textFormat
126 verticalAlignment: root.verticalAlignment
127 wrapMode: root.wrapMode
129 onLinkActivated: root.linkActivated(textEdit.hoveredLink)
130 onLinkHovered: root.linkHovered(textEdit.hoveredLink)
134 Accessible.selectableText: true
135 Accessible.editable: false
145 cursorShape: root.cursorShape ? root.cursorShape : (textEdit.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor)
150 enabled: !textEdit.selectByMouse
152 acceptedDevices: PointerDevice.Mouse | PointerDevice.TouchPad | PointerDevice.Stylus
153 acceptedButtons: Qt.LeftButton
155 onTapped: root.clicked()
159 enabled: textEdit.selectByMouse
161 acceptedDevices: PointerDevice.Mouse | PointerDevice.TouchPad | PointerDevice.Stylus
162 acceptedButtons: Qt.RightButton