Skip to content

Commit b6f401d

Browse files
committed
Remove debug logs
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
1 parent 9e7a0c8 commit b6f401d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

include/gz/gui/qml/GzSpinBox.qml

-10
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Item {
2929
property int decimals: 0
3030

3131
onValueChanged: {
32-
console.log("root val", value)
3332
if (!spinBox.__modifying)
3433
{
3534
spinBox.value = decimalToInt(root.value)
@@ -41,7 +40,6 @@ Item {
4140
readonly property int kMaxInt: Math.pow(2, 31) - 1
4241

4342
function decimalToInt(decimal) {
44-
//console.log("dec:", decimal)
4543
var result = decimal * spinBox.decimalFactor
4644
if (result >= kMaxInt) {
4745
return kMaxInt
@@ -53,7 +51,6 @@ Item {
5351
}
5452

5553
function intToDecimal(intVal) {
56-
//console.log("int:", intVal)
5754
return intVal / spinBox.decimalFactor
5855
}
5956

@@ -92,7 +89,6 @@ Item {
9289
// cannot be modified from outside of this SpinBox element.
9390
property real __valueAsDecimal: 0.0
9491
onValueChanged: {
95-
console.log("spinbox val ch:", value)
9692
__valueAsDecimal = intToDecimal(value)
9793
}
9894
// Note that this is a different event than ValueChanged. The
@@ -105,13 +101,9 @@ Item {
105101
// emitting the editingFinished signal so users GzSpinBox can be
106102
// notified and take the new value of the spinbox, and finally
107103
// disabling valueUpdater to restore the original bindings.
108-
console.log("valUp before when=true", value)
109104
valueUpdater.when = true
110-
console.log("valUp after when=true", value)
111105
root.editingFinished()
112-
console.log("valUp before when=false", value)
113106
valueUpdater.when = false
114-
console.log("valUp after when=false", value)
115107
__modifying = false
116108
}
117109

@@ -124,9 +116,7 @@ Item {
124116

125117
readonly property real decimalFactor: Math.pow(10, root.decimals)
126118
onDecimalFactorChanged: {
127-
console.log("dec chang:", decimals, root.value, spinBox.value)
128119
value = decimalToInt(__valueAsDecimal)
129-
console.log("after dec chang:", decimals, root.value, spinBox.value)
130120
}
131121

132122
contentItem: TextInput {

src/plugins/grid_config/GridConfig.qml

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ GridLayout {
3838
Connections {
3939
target: GridConfig
4040
function onNewParams(_hCellCount, _vCellCount, _cellLength, _pos, _rot, _color) {
41-
console.log("newParams", _pos, _pos.x)
4241
horizontalCellCount.value = _hCellCount;
4342
verticalCellCount.value = _vCellCount;
4443
cellLength.value = _cellLength;

0 commit comments

Comments
 (0)