mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Make texts fields selectable by mouse for various components
This enables mouse-selectable for - The image reader dialog - Layer view text field (in simulation view) - The TextField with unit component (for instace used to set the scale of models) - Rename dialog(s) - Currency text field - The settings filter text field CURA-8684
This commit is contained in:
parent
5aa67770a2
commit
264ce3bdd1
4 changed files with 10 additions and 1 deletions
|
@ -42,6 +42,7 @@ UM.Dialog
|
|||
|
||||
TextField {
|
||||
id: peak_height
|
||||
selectByMouse: true
|
||||
objectName: "Peak_Height"
|
||||
validator: RegExpValidator {regExp: /^\d{0,3}([\,|\.]\d*)?$/}
|
||||
width: 180 * screenScaleFactor
|
||||
|
@ -65,6 +66,7 @@ UM.Dialog
|
|||
|
||||
TextField {
|
||||
id: base_height
|
||||
selectByMouse: true
|
||||
objectName: "Base_Height"
|
||||
validator: RegExpValidator {regExp: /^\d{0,3}([\,|\.]\d*)?$/}
|
||||
width: 180 * screenScaleFactor
|
||||
|
@ -88,6 +90,7 @@ UM.Dialog
|
|||
|
||||
TextField {
|
||||
id: width
|
||||
selectByMouse: true
|
||||
objectName: "Width"
|
||||
focus: true
|
||||
validator: RegExpValidator {regExp: /^[1-9]\d{0,2}([\,|\.]\d*)?$/}
|
||||
|
@ -111,6 +114,7 @@ UM.Dialog
|
|||
}
|
||||
TextField {
|
||||
id: depth
|
||||
selectByMouse: true
|
||||
objectName: "Depth"
|
||||
focus: true
|
||||
validator: RegExpValidator {regExp: /^[1-9]\d{0,2}([\,|\.]\d*)?$/}
|
||||
|
@ -180,6 +184,7 @@ UM.Dialog
|
|||
}
|
||||
TextField {
|
||||
id: transmittance
|
||||
selectByMouse: true
|
||||
objectName: "Transmittance"
|
||||
focus: true
|
||||
validator: RegExpValidator {regExp: /^[1-9]\d{0,2}([\,|\.]\d*)?$/}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue