Browse Source

Simpify Readonly textarea

CURA-8685
Jaime van Kessel 3 years ago
parent
commit
6be75c75f8
1 changed files with 2 additions and 9 deletions
  1. 2 9
      resources/qml/Preferences/ReadOnlyTextArea.qml

+ 2 - 9
resources/qml/Preferences/ReadOnlyTextArea.qml

@@ -21,7 +21,6 @@ ScrollView
         id: textArea
 
         enabled: !base.readOnly
-        opacity: base.readOnly ? 0.5 : 1.0
         selectByMouse: true
 
         background: Rectangle
@@ -33,15 +32,9 @@ ScrollView
         color: UM.Theme.getColor("text")
         font: UM.Theme.getFont("default")
 
-        Keys.onReturnPressed:
-        {
-            base.editingFinished()
-        }
+        Keys.onReturnPressed:  base.editingFinished()
 
-        Keys.onEnterPressed:
-        {
-            base.editingFinished()
-        }
+        Keys.onEnterPressed: base.editingFinished()
 
         onActiveFocusChanged:
         {