summary refs log tree commit diff
path: root/resources/qml/MatrixText.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-10-10 00:33:39 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-10-10 00:33:39 +0200
commit3a0d5788e1fc49816742ddd4799ad0d658925ba2 (patch)
tree55686a2e0bd354260ebd8c17fedb755b5d0d131c /resources/qml/MatrixText.qml
parentTranslated using Weblate (French) (diff)
parentRestore reply context menu (diff)
downloadnheko-3a0d5788e1fc49816742ddd4799ad0d658925ba2.tar.xz
Merge branch 'delegate-rework'
Diffstat (limited to 'resources/qml/MatrixText.qml')
-rw-r--r--resources/qml/MatrixText.qml30
1 files changed, 15 insertions, 15 deletions
diff --git a/resources/qml/MatrixText.qml b/resources/qml/MatrixText.qml
index 521e9280..c804e72e 100644
--- a/resources/qml/MatrixText.qml
+++ b/resources/qml/MatrixText.qml
@@ -4,33 +4,33 @@
 
 // TODO: using any Qt 6 API version will screw up the reply text color. We need to
 //       figure out a more permanent fix than just importing the old version.
-import QtQuick 2.15
+//import QtQuick 2.15
+import QtQuick
 import QtQuick.Controls
 import im.nheko
 
-TextEdit {
+TextArea {
     id: r
 
     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.visible: hoveredLink || false
+    background: null
+    bottomInset: 0
+    bottomPadding: 0
     // this always has to be enabled, otherwise you can't click links anymore!
     //enabled: selectByMouse
     color: palette.text
     focus: false
+    leftInset: 0
+    leftPadding: 0
     readOnly: true
+    rightInset: 0
+    rightPadding: 0
     textFormat: TextEdit.RichText
+    topInset: 0
+    topPadding: 0
     wrapMode: Text.Wrap
 
     // Setting a tooltip delay makes the hover text empty .-.
@@ -40,9 +40,9 @@ TextEdit {
     }
     onLinkActivated: Nheko.openLink(link)
 
-    //// propagate events up
-    //onPressAndHold: (event) => event.accepted = false
-    //onPressed: (event) => event.accepted = (event.button == Qt.LeftButton)
+    // propagate events up
+    onPressAndHold: event => event.accepted = false
+    onPressed: event => event.accepted = (event.button == Qt.LeftButton)
 
     NhekoCursorShape {
         id: cs