|
|
@ -6,11 +6,21 @@ import QtQuick 2.5 |
|
|
|
import QtQuick.Controls 2.3 |
|
|
|
import QtQuick.Controls 2.3 |
|
|
|
import im.nheko 1.0 |
|
|
|
import im.nheko 1.0 |
|
|
|
|
|
|
|
|
|
|
|
TextEdit { |
|
|
|
TextArea { |
|
|
|
id: r |
|
|
|
id: r |
|
|
|
|
|
|
|
|
|
|
|
property alias cursorShape: cs.cursorShape |
|
|
|
property alias cursorShape: cs.cursorShape |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
leftInset: 0 |
|
|
|
|
|
|
|
bottomInset: 0 |
|
|
|
|
|
|
|
rightInset: 0 |
|
|
|
|
|
|
|
topInset: 0 |
|
|
|
|
|
|
|
leftPadding: 0 |
|
|
|
|
|
|
|
bottomPadding: 0 |
|
|
|
|
|
|
|
rightPadding: 0 |
|
|
|
|
|
|
|
topPadding: 0 |
|
|
|
|
|
|
|
background: null |
|
|
|
|
|
|
|
|
|
|
|
ToolTip.text: hoveredLink |
|
|
|
ToolTip.text: hoveredLink |
|
|
|
ToolTip.visible: hoveredLink || false |
|
|
|
ToolTip.visible: hoveredLink || false |
|
|
|
// this always has to be enabled, otherwise you can't click links anymore! |
|
|
|
// this always has to be enabled, otherwise you can't click links anymore! |
|
|
@ -29,6 +39,11 @@ TextEdit { |
|
|
|
} |
|
|
|
} |
|
|
|
onLinkActivated: Nheko.openLink(link) |
|
|
|
onLinkActivated: Nheko.openLink(link) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// propagate events up |
|
|
|
|
|
|
|
onPressAndHold: (event) => event.accepted = false |
|
|
|
|
|
|
|
onPressed: (event) => event.accepted = (event.button == Qt.LeftButton) |
|
|
|
|
|
|
|
|
|
|
|
CursorShape { |
|
|
|
CursorShape { |
|
|
|
id: cs |
|
|
|
id: cs |
|
|
|
|
|
|
|
|
|
|
|