15 Commits

Author SHA1 Message Date
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
2f96f7b410 RegularExpressionValidator requires newer version of QtQuick
CURA-8640
2022-04-04 10:45:00 +02:00
j.delarago
e20ded248f Fix spinbox height being almost 0 and padding being missing between buttons and text input.
CURA-8640
2022-04-04 09:25:22 +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
0b82e9ef31 Remove focus from TextField when incrementing/decrementing using buttons.
This fixes the issue where the value that was in the textfield before typing would be incremented instead, if the textField had active focus.

CURA-8890
2022-03-14 14:29:11 +01:00
casper
7ebc5eaac4 Use Cura.TextField in the spinbox component
CURA-8688
2022-03-01 09:30:02 +01:00
j.delarago
4510a8b06e Down spinbox button highlighting up spinbox button when clicked.
CURA-8688
2022-02-23 15:15:46 +01:00
j.delarago
9f75b870a7 Swap "+" and "-" made from Rectangle elements for icons.
CURA-8688
2022-02-22 16:18:01 +01:00
j.delarago
d40e91cc08 Remove unneccesary opacity assignment.
Change padding to styled width

CURA-8688
2022-02-22 10:37:13 +01:00
j.delarago
30ca9ab469 Update spinbox to new design. Add reusable UnderlineBackground Component for background of newly designed elements.
CURA-8688
2022-02-21 15:44:16 +01:00
Jaime van Kessel
1b9c86603c Fix layout of multiply object dialog 2022-02-10 10:59:21 +01:00
casper
4737fed9d4 Allow commas as number input 2022-02-08 16:48:10 +01:00
casper
3a74417e6e Add comments 2022-02-08 16:01:29 +01:00
casper
9c2d370e72 Allow SpinBox components to contain fractional values 2022-02-08 15:52:49 +01:00
casper
1746e24dd9 Make SpinBox a reusable component
Forgot to update Readonly `SpinBox`es to Qt 2 when implementing Cura
8684. As the spinbox is used in various places with the same
functionality it made sense to create a reusable component.

There is still a feature gap in the implementation; The `SpinBox`es
from QtControls 2.x value is defined as an integer. For some use-cases
we do require a fractional value in the `SpinBox`. The only two places
where this is required are the `material_diameter` and
`material_density` fields in the material prefference page.

Cura 8684
2022-02-07 19:59:57 +01:00