Skip to content

Commit c633ae0

Browse files
committed
[qml] ExpressionTextField: Remove decimals property
Floating numbers should not have a fixed number of decimals to avoid losing precision, so the `decimals` property is not needed anymore. References to it are removed in the HdrImageToolbar.
1 parent 214b2aa commit c633ae0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

meshroom/ui/qml/Utils/ExpressionTextField.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ TextField {
1111

1212
property bool hasExprError: false
1313
property bool isInt: false
14-
property int decimals: 2
1514

1615
// Overlay for error state (red border on top of default background)
1716
Rectangle {

meshroom/ui/qml/Viewer/HdrImageToolbar.qml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ FloatingPane {
124124
ToolTip.text: "Color Gain (in linear colorspace)"
125125

126126
text: gainValue
127-
decimals: 2
128127
Layout.preferredWidth: textMetrics_gainValue.width
129128
selectByMouse: true
130129
onAccepted: {
@@ -164,7 +163,7 @@ FloatingPane {
164163

165164
onClicked: {
166165
gammaLabel.text = gammaDefaultValue
167-
gammaCtrl.value = gammaLabel.text;
166+
gammaCtrl.value = gammaLabel.text
168167
}
169168
}
170169
ExpressionTextField {
@@ -175,7 +174,6 @@ FloatingPane {
175174
ToolTip.text: "Apply Gamma (after Gain and in linear colorspace)"
176175

177176
text: gammaValue
178-
decimals: 2
179177
Layout.preferredWidth: textMetrics_gainValue.width
180178
selectByMouse: true
181179
onAccepted: {

0 commit comments

Comments
 (0)