Skip to content

Commit 95afc33

Browse files
committed
[qt6][ImageGallery] IntrinsicDisplay: Harmonize naming of components
1 parent 4fb5194 commit 95afc33

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

meshroom/ui/qml/ImageGallery/IntrinsicDisplayDelegate.qml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ RowLayout {
4949
if (!attribute)
5050
return undefined
5151
switch (attribute.type) {
52-
case "ChoiceParam": return choice_component
53-
case "IntParam": return int_component
54-
case "FloatParam": return float_component
55-
case "BoolParam": return bool_component
56-
case "StringParam": return textField_component
52+
case "ChoiceParam": return choiceComponent
53+
case "IntParam": return intComponent
54+
case "FloatParam": return floatComponent
55+
case "BoolParam": return boolComponent
56+
case "StringParam": return textFieldComponent
5757
default: return undefined
5858
}
5959
}
@@ -62,7 +62,7 @@ RowLayout {
6262
}
6363

6464
Component {
65-
id: textField_component
65+
id: textFieldComponent
6666
TextInput {
6767
text: attribute.value
6868
width: intrinsicModel.columnWidths[columnIndex]
@@ -81,14 +81,14 @@ RowLayout {
8181
_reconstruction.setAttribute(attribute, text)
8282
}
8383
Component.onDestruction: {
84-
if(activeFocus)
84+
if (activeFocus)
8585
_reconstruction.setAttribute(attribute, text)
8686
}
8787
}
8888
}
8989

9090
Component {
91-
id: int_component
91+
id: intComponent
9292

9393
TextInput {
9494
text: model.display.value
@@ -121,7 +121,7 @@ RowLayout {
121121
}
122122

123123
Component {
124-
id: choice_component
124+
id: choiceComponent
125125
ComboBox {
126126
id: combo
127127
model: attribute.desc !== undefined ? attribute.desc.values : undefined
@@ -146,7 +146,7 @@ RowLayout {
146146
}
147147

148148
Component {
149-
id: bool_component
149+
id: boolComponent
150150
CheckBox {
151151
checked: attribute ? attribute.value : false
152152
padding: 12
@@ -156,7 +156,7 @@ RowLayout {
156156
}
157157

158158
Component {
159-
id: float_component
159+
id: floatComponent
160160
TextInput {
161161
readonly property real formattedValue: attribute.value.toFixed(2)
162162
property string displayValue: String(formattedValue)
@@ -179,9 +179,9 @@ RowLayout {
179179

180180
autoScroll: activeFocus
181181

182-
//Use this function to ensure the left part is visible
183-
//while keeping the trick for formatting the text
184-
//Timing issues otherwise
182+
// Use this function to ensure the left part is visible
183+
// while keeping the trick for formatting the text
184+
// Timing issues otherwise
185185
onActiveFocusChanged: {
186186
if (activeFocus)
187187
text = String(attribute.value)

0 commit comments

Comments
 (0)