Joey de l'Arago
8780a2c4a0
Move validators to top of file.
...
CURA-9793
2022-12-12 14:12:32 +01:00
Joey de l'Arago
c6cc9ee6ec
Update validators for SettingTextField to use strings from our validators. You can't access the components directly from javascript without instantiating them so they are instantiated here first.
...
CURA-9793
2022-12-12 14:06:45 +01:00
Ghostkeeper
d27ed71518
Increase maximum integer length to 12 characters
...
This may cause overflows if the integer type is 32-bit, but we tend to use 64-bit anyway. And 9,999,999 was already an overflow too.
Fixes #12859 .
2022-07-29 10:30:25 +02:00
Ghostkeeper
97e2d6a432
Use border only on active state
...
Contributes to issue CURA-9217.
2022-05-10 16:03:55 +02:00
Ghostkeeper
7fda81b678
Show a border around text fields and drop-downs when hovering
...
And when they are focused.
This applies to the setting text fields, extruder selectors and drop-downs as well as to the machine settings.
Contributes to issue CURA-9217.
2022-05-09 17:48:38 +02:00
Remco Burema
76d5f92975
Align colors disabled settings textfield (5 min fix).
...
CURA-9252
2022-05-05 17:54:06 +02:00
j.delarago
2ffcfafc77
Some place RegularExpressionValidator can't be found in QtQuick 2.10 but can be in 2.15 so all files using RegularExpressionValidator have been bumped to latest QtQuick
...
CURA-8640
2022-04-05 16:10:39 +02:00
j.delarago
e593322b43
When getting active focus textinput value was being cleared. However if text was inputted then this would stay between active focus states.
...
This commit forces the value to be assigned the value in the textInput when active focus is given.
CURA-8640
2022-04-04 10:38:09 +02:00
c.lamboo
3c9e2a1b08
Update RegExpValidator to RegularExpressionValidator
...
Due to Qt6 API change
CURA-8640
2022-03-30 15:10:37 +02:00
j.delarago
719257bb63
Update validation colors to match new designs
...
CURA-8991
2022-03-04 15:05:30 +01:00
j.delarago
1eb16c0ec5
Update SettingTextField to match TextField
...
CURA-8991
2022-03-04 13:53:59 +01:00
j.delarago
1fc6b8ced6
New designs use dark mode border_main for dark theme.
...
Remove uses of border_main_light. The only puprose of this color was to give dark mode access to the border_main of the light theme.
CURA-8991
2022-03-04 13:22:55 +01:00
j.delarago
195278aa55
Make all text fields use updated background and lining style.
...
CURA-8688
2022-03-01 10:20:39 +01:00
Jaime van Kessel
c528616d12
Set selection color of textfields
...
CURA-8947
2022-02-17 14:39:11 +01:00
Jaime van Kessel
a68584cda1
Replace more instances of label with UM.Label
2021-11-10 17:42:23 +01:00
Ghostkeeper
836e7c0c9b
Fix overlap of unit and setting value with RTL-languages
...
The unit was hard-coded to be anchored to the right. The text was getting the full width and aligned implicitly by the language. We'll keep the layout of the text properly internationalised, but make sure that the unit is opposite of wherever the text is.
Fixes CURA-8206.
Fixes #9667 .
2021-06-07 18:00:59 +02:00
Konstantinos Karmas
504f6dbe70
Revert "Cura 7813 qml modules version bump"
2021-03-30 09:48:28 +02:00
jelle Spijker
2986d50745
Update QtQuick and QtQuick.Controls
...
CURA-7813
2021-03-29 17:55:19 +02:00
Jaime van Kessel
527e5775a7
Also set clipping for string
2020-07-20 15:25:55 +02:00
Jaime van Kessel
e010d4f945
Only enable clipping for list text fields
...
Because clipping is expensive!
2020-07-10 16:44:55 +02:00
Jaime van Kessel
1b1c7b78aa
Remove unneeded rounding
2020-01-03 16:56:13 +01:00
Remco Burema
fc908cdf9b
Revert "Settings-GUI: Max decimal places to 4 (from 3)."
...
This reverts commit 020bedcfeea844a3a785fc12d5a590cef4b8e0a8.
2019-05-28 11:33:17 +02:00
Remco Burema
020bedcfee
Settings-GUI: Max decimal places to 4 (from 3).
2019-05-28 11:07:18 +02:00
Lipu Fei
2054413952
Add handling for ValidatorState.Invalid
...
CURA-6497
ValidatorState.Invalid is set if a string setting has allow_empty =
False and its value is empty.
2019-05-09 12:07:16 +02:00
Diego Prado Gesto
d3b5b2717d
Add rounded corners to the settings
...
Contributes to CURA-5941
2018-12-03 15:56:21 +01:00
fieldOfView
53b481ff5d
Reduce the maximum precision of floats in SettingTextField inputs
...
No settings in Cura require more than 3 digits of precision. Many settings are in mm, and CuraEngine does its calculations in while microns. Having more precision in the frontend than in the backend apparently thoroughly confuses some people. Fixes #4368
2018-09-29 08:16:11 +02:00
Jaime van Kessel
2dbaa304a0
Set textFormat for the setting items to PlainText
...
Based on the Qt guide on making qml run much faster, it seems that the default of textFormatting (auto)
is quite expensive. As we make a *lot* of settingItems, which we don't want to format, it's better to set it to plain.
I haven't checked how much faster it actually is, but i didn't see visual changes, so it's at least a safe step.
2018-09-20 15:22:35 +02:00
jack
f3f4be5334
Merge pull request #3496 from fieldOfView/fix_textfield_select
...
Only select all text when tabbing to fields, not when clicking a field
2018-03-15 10:28:47 +01:00
fieldOfView
32d677295f
Set rendertype for units in SettingTextField
2018-02-15 11:38:51 +01:00
Ghostkeeper
ee9de1f11b
Merge branch '3.2'
...
Lots of conflicts due to rounding vs. flooring of text element positions for weirdness with the font aliasing.
2018-02-14 10:53:51 +01:00
Mark
b531c0550d
Change Math.floor to Math.round as a last try to fix garbled fonts
...
CURA-4941
2018-02-14 09:28:47 +01:00
Mark
12b2348309
Revert "Use QTQuick 2.2 to fix garbled fonts"
...
This reverts commit 0d5bb952efc468522b55cbf903349aaf7f979af9.
2018-02-13 14:37:05 +01:00
Mark
0d5bb952ef
Use QTQuick 2.2 to fix garbled fonts
...
CURA-4941
2018-02-13 12:42:31 +01:00
Mark
7493fae667
Fix to make sure margins cant have partial values
...
CURA-4941
2018-02-13 07:32:10 +01:00
Mark
7ea654df3d
Fix to make sure margins cant have partial values
...
CURA-4941
2018-02-13 07:31:02 +01:00
fieldOfView
2703474861
Only select all text when tabbing through fields, not when clicking a field
2018-01-27 21:56:39 +01:00
Ghostkeeper
0007f3dafd
Merge branch '3.2'
2018-01-16 09:28:40 +01:00
Aleksei S
9a3c9921ca
Fix: remove unnecesary cura slice request
...
CURA-4785
2018-01-15 17:21:43 +01:00
Aleksei S
38ae75637a
Revert "Fix: Cura update setting after delay"
...
This reverts commit f823a98708dd3eed2485ff412d3fe2dd03a31f35.
2018-01-15 16:15:36 +01:00
Aleksei S
f823a98708
Fix: Cura update setting after delay
...
CURA-4785
2018-01-15 15:39:25 +01:00
Jaime van Kessel
ed9634ebe0
Merge branch 'master' of github.com:Ultimaker/Cura into network_rewrite
2018-01-08 10:56:12 +01:00
ChrisTerBeke
9784faf181
Merge pull request #3017 from fieldOfView/feature_textfield_select
...
Select text when gaining focus
2018-01-04 17:01:46 +01:00
Lipu Fei
84adbc5f41
Use the 5.8 versions of QtQuick modules in QMLs
...
CURA-4758
2018-01-04 13:26:14 +01:00
ChrisTerBeke
27ca743e58
Merge branch 'master' into qtquick-controls-2.0
2018-01-03 11:03:17 +01:00
fieldOfView
57a9b709e7
Select text when gaining focus
2017-12-19 12:14:58 +01:00
Ruben D
0d0bcb8aea
Clip text that exceeds the width of the text box.
...
For #2802 .
2017-11-26 18:48:27 +01:00
Ruben D
8847325cf8
Remove limit on length for integer arrays
...
The integer arrays were limited because the text in the text field is not properly clipped. I found a fix for that.
Fixes #2802 .
2017-11-26 18:47:58 +01:00
Jaime van Kessel
7d28b26ff2
Merge branch 'master' of github.com:Ultimaker/Cura into qtquick-controls-2.0
2017-11-16 16:48:22 +01:00
fieldOfView
8dfba9a318
Stop SettingTextField from setting values when getting/losing the focus
...
Fixes #2694
2017-10-30 15:31:14 +01:00
fieldOfView
29729d2a23
Change renderType for TextInput elements
...
Unlike Label elements, which are defined to use Text.NativeRendering, TextInput uses Qt text rendering by default. This can lead to differences in font rendering between input fields and other texts.
2017-10-14 11:43:18 +02:00