mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Simpify Readonly textarea
CURA-8685
This commit is contained in:
parent
da96cb833c
commit
6be75c75f8
1 changed files with 2 additions and 9 deletions
|
@ -21,7 +21,6 @@ ScrollView
|
||||||
id: textArea
|
id: textArea
|
||||||
|
|
||||||
enabled: !base.readOnly
|
enabled: !base.readOnly
|
||||||
opacity: base.readOnly ? 0.5 : 1.0
|
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
|
|
||||||
background: Rectangle
|
background: Rectangle
|
||||||
|
@ -33,15 +32,9 @@ ScrollView
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
|
|
||||||
Keys.onReturnPressed:
|
Keys.onReturnPressed: base.editingFinished()
|
||||||
{
|
|
||||||
base.editingFinished()
|
|
||||||
}
|
|
||||||
|
|
||||||
Keys.onEnterPressed:
|
Keys.onEnterPressed: base.editingFinished()
|
||||||
{
|
|
||||||
base.editingFinished()
|
|
||||||
}
|
|
||||||
|
|
||||||
onActiveFocusChanged:
|
onActiveFocusChanged:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue