mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Remove catalog from Textfield
The creation of the catalog is rather slow, so it's better not to create it for every component
This commit is contained in:
parent
eb7ab657fe
commit
13227249b5
2 changed files with 2 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ Item
|
||||||
|
|
||||||
property alias text: textField.text
|
property alias text: textField.text
|
||||||
|
|
||||||
signal editingFinished();
|
signal editingFinished()
|
||||||
|
|
||||||
property bool readOnly: false
|
property bool readOnly: false
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,7 @@ TextField
|
||||||
id: textField
|
id: textField
|
||||||
|
|
||||||
property alias leftIcon: iconLeft.source
|
property alias leftIcon: iconLeft.source
|
||||||
|
|
||||||
UM.I18nCatalog { id: catalog; name: "cura" }
|
|
||||||
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
selectByMouse: true
|
selectByMouse: true
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue