Format qml
This commit is contained in:
parent
de8522a185
commit
5aee8d609a
28 changed files with 2623 additions and 2954 deletions
|
|
@ -11,22 +11,23 @@ TextEdit {
|
|||
|
||||
property alias cursorShape: cs.cursorShape
|
||||
|
||||
textFormat: TextEdit.RichText
|
||||
readOnly: true
|
||||
focus: false
|
||||
wrapMode: Text.Wrap
|
||||
selectByMouse: !Settings.mobileMode
|
||||
ToolTip.text: hoveredLink
|
||||
ToolTip.visible: hoveredLink || false
|
||||
// this always has to be enabled, otherwise you can't click links anymore!
|
||||
//enabled: selectByMouse
|
||||
color: palette.text
|
||||
onLinkActivated: Nheko.openLink(link)
|
||||
ToolTip.visible: hoveredLink || false
|
||||
ToolTip.text: hoveredLink
|
||||
focus: false
|
||||
readOnly: true
|
||||
selectByMouse: !Settings.mobileMode
|
||||
textFormat: TextEdit.RichText
|
||||
wrapMode: Text.Wrap
|
||||
|
||||
// Setting a tooltip delay makes the hover text empty .-.
|
||||
//ToolTip.delay: Nheko.tooltipDelay
|
||||
Component.onCompleted: {
|
||||
TimelineManager.fixImageRendering(r.textDocument, r);
|
||||
}
|
||||
onLinkActivated: Nheko.openLink(link)
|
||||
|
||||
CursorShape {
|
||||
id: cs
|
||||
|
|
@ -34,5 +35,4 @@ TextEdit {
|
|||
anchors.fill: parent
|
||||
cursorShape: hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue